Created
March 6, 2017 16:33
-
-
Save smolin/2ae918d3139059396dcf22d7600dbef8 to your computer and use it in GitHub Desktop.
Simple Java Cheat Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hello World | |
public class YourName { | |
public static void main(String[] args) { | |
System.out.println("Hello World"); | |
} | |
} | |
# Fundamental data types and examples | |
int 99 boolean true char 'a' | |
# Variables are declared | |
int i; | |
# and may be initialized | |
int i = 99; | |
# Comments | |
// end-of-line | |
/* | |
** multi-line | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment