Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Hello {
- public static void main(String args[]) {//This will only be used once, in the main class where the real thing activates
- /*
- * int, Is an Integer, holds only numbers
- * variable, gives the new integer a name,
- * if, if basically is like a real life sentence or whatver.. Example: If tommy is white then that means he is not black
- * } else {, is the same as real life. Example: If tommy is not white then he is black
- */
- int apple = 1;
- if(apple == 1) {
- System.out.println("The apple is red.");
- } else {
- System.out.println("The apple is not red.");
- }
- }
- }
Add Comment
Please, Sign In to add comment