Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /**
  4. *
  5. * @author Admin
  6. */
  7. public class OOPL1 {
  8.  
  9. /**
  10. * @param args the command line arguments
  11. */
  12. public static void main(String[] args) {
  13. // TODO code application logic here
  14. Car c1 = new Car();
  15. hellWord();
  16. inputnum();
  17.  
  18. }
  19. private static void hellWord()
  20. {
  21. System.out.print("Hi Pare ");
  22. }
  23. private static void inputnum()
  24. {
  25. Scanner sc = new Scanner(System.in);
  26. int num = sc.nextInt();
  27.  
  28. System.out.print("Hello World");
  29.  
  30. }
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement