Advertisement
jorditobias

Lanterns

Mar 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1.  
  2. /**
  3. * Write a description of class Lanterns here.
  4. * question 40 on chapters one and two test
  5. * @author (Jordi Tobias)
  6. * @version (March 25, 2017)
  7. */
  8. public class Lanterns
  9. {
  10. public static void main(String[] argm)
  11. {
  12. fivestars();
  13. ninestars();
  14. thirteenstars();
  15. none();
  16. none();
  17. fivestars();
  18. thirteenstars();
  19. starandline();
  20. thirteenstars();
  21. fivestars();
  22. ninestars();
  23. thirteenstars();
  24. }
  25. public static void fivestars()
  26. {
  27. System.out.println(" ***** ");
  28. }
  29. public static void ninestars()
  30. {
  31. System.out.println(" ********* ");
  32. }
  33. public static void thirteenstars()
  34. {
  35. System.out.println("*************");
  36. }
  37. public static void none()
  38. {
  39. System.out.println(" ");
  40. }
  41. public static void starandline()
  42. {
  43. System.out.println("* | | | | | *");
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement