Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java
(view source)
Revision as of 02:41, 26 March 2015
254 bytes added
,
02:41, 26 March 2015
→variables
Line 15:
Line 15:
public static void main(String[] args) {
public static void main(String[] args) {
−
int
variable
= 88;
+
int
myInt
= 88;
//Integer 32 bit
−
System.out.println(variable);
+
short myShort; //Short 16 bit
+
long myLong; //Long 64 bit
+
+
double myDouble; //Double
+
float myFloat = 325.25f //Float
+
+
char myChar = 'y'; //Char
+
System.out.println(variable);
}
}
}</source
}</source
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version