Skip to content

Instantly share code, notes, and snippets.

@Humoud
Created June 30, 2015 19:51
Show Gist options
  • Save Humoud/ed94d9777a843332cfd7 to your computer and use it in GitHub Desktop.
Save Humoud/ed94d9777a843332cfd7 to your computer and use it in GitHub Desktop.
Java Tutorial 2
// 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