Advertisement
adhityardt

Untitled

Dec 19th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. package lat.pbo;
  2.  
  3. /**
  4. *
  5. * @author siswa
  6. */
  7. public class BuatMotor {
  8. public static void main (String []ar){
  9. MotorClass m1 = new MotorClass(1000);
  10. m1.maju();
  11. m1.akselerasi(200);
  12. package lat.pbo;
  13.  
  14. /**
  15. *
  16. * @author siswa
  17. */
  18. public class BuatMotor {
  19. public static void main (String []ar){
  20. MotorClass m1 = new MotorClass(1000);
  21. m1.maju();
  22. m1.akselerasi(200);
  23. m1.belok(Arah.KANAN);
  24. m1.akselerasi(-50);
  25. m1.stop();
  26. System.out.println("Motor "+m1.mesin+"cc");
  27. System.out.println("Roda ada "+m1.roda);
  28. System.out.println("Kunci motor : "+m1.pinjamKunci());
  29. }
  30. } m1.belok(Arah.KANAN);
  31. m1.akselerasi(-50);
  32. m1.stop();
  33. System.out.println("Motor "+m1.mesin+"cc");
  34. System.out.println("Roda ada "+m1.roda);
  35. System.out.println("Kunci motor : "+m1.pinjamKunci());
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement