Created
June 30, 2015 19:51
-
-
Save Humoud/ed94d9777a843332cfd7 to your computer and use it in GitHub Desktop.
Java Tutorial 2
This file contains hidden or 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
// File: Tut1.java | |
// Every java program must have at least on class | |
public class Tut1 { | |
// Every every Java program must have just one main | |
public static void main(String[] args) { | |
// "123 ana programmer" is a String | |
// Java is case-sensitive | |
// ("123 ana programmer") now the string is passed as an argument | |
System.out.println( "123 ana programmer" ); | |
// \n = new line | |
// \t = tab | |
// \" = to write double quotes | |
System.out.println("Ha?\tshloona?\n\"Keffoo\"?"); | |
// TODO learn compile-time errors! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment