Java Tutorials Part 3 - Data Types more thoroughly
** These Videos are meant to be watched in FULL screen on high-detail mode, so please do not complain that you cannot read it in the comments. Click high detail and go to full screen! **
http://www.youtube.com/watch?v...
HIGH DETAIL LINK ^^
Source Code:
package sources;
public class Tutorial2continued {
public static void main(String[] args) {
byte num1 = 12;
short num2 = 100;
int num3 = 1000;
long num4 = 20001;
float num5 = 120023.45f;
double num6 =123456;
boolean value = true;
char character = 'a';
String sentence = "Hello JT!";
System.out.println(num1);
System.out.println(num2);
System.out.println(num3);
System.out.println(num4);
System.out.println(num5);
System.out.println(num6);
System.out.println(value);
System.out.println(character);
System.out.println(sentence);
}
}
Channel: Education Uploaded: November 30, 1999 at 12:00 am Author: JavaTutorials
the reason the ide didnt underline it when u didnt add the f for the float is because without the f it could be a double because a double dosent use an f and the ide wont recognize that error till after its compiled good work though