Skip to content

Instantly share code, notes, and snippets.

@lb7n
Last active August 29, 2015 14:05
Show Gist options
  • Save lb7n/83200d5c35da3b544dee to your computer and use it in GitHub Desktop.
Save lb7n/83200d5c35da3b544dee to your computer and use it in GitHub Desktop.
package chapter2;
public class MainClass {
public static void main(String[] args)
{
System.out.println("The anime on my wall scroll is dragon ball z");
System.out.println("What if Zelda was a girl?");
int w = 40;
int x = 25;
double y = 2.0;
int z = 30;
System.out.println(w);
System.out.println(w + x);
System.out.println(z / y);
String NOT = "I am not";
String BREAK = "\n";
String YES = "a jealous monster";
String EVERYTHING = w + BREAK + x + BREAK + y + BREAK + z;
double MATHS = w + x + y + z;
double AVERAGE = MATHS / 4;
System.out.println(NOT + BREAK + YES);
System.out.println(EVERYTHING);
System.out.println(AVERAGE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment