Last active
August 29, 2015 14:05
-
-
Save lb7n/83200d5c35da3b544dee to your computer and use it in GitHub Desktop.
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
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