Guest User

Untitled

a guest
Jan 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public class Hello {
  2.  
  3. public static void main(String args[]) {//This will only be used once, in the main class where the real thing activates
  4. /*
  5. * int, Is an Integer, holds only numbers
  6. * variable, gives the new integer a name,
  7. * if, if basically is like a real life sentence or whatver.. Example: If tommy is white then that means he is not black
  8. * } else {, is the same as real life. Example: If tommy is not white then he is black
  9. */
  10. int apple = 1;
  11. if(apple == 1) {
  12. System.out.println("The apple is red.");
  13.  
  14. } else {
  15. System.out.println("The apple is not red.");
  16. }
  17.  
  18. }
  19.  
  20. }
Add Comment
Please, Sign In to add comment