Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. /*
  2.  
  3. * File Name: PoemGen.java
  4.  
  5. * Purpose: Prints a simple Roses are red poem.
  6.  
  7. * Author: Pranav Ramesh
  8.  
  9. */
  10.  
  11.  
  12.  
  13. public class PoemGen {
  14.  
  15. public static void main(String[] args) {
  16.  
  17. // The main method that prints the program.
  18.  
  19. System.out.println("Roses are red\nViolets are blue\nSugar is sweet\nAnd so are you!");
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement