Advertisement
Guest User

code1_2

a guest
Feb 26th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. /*write a program that displays Welcome to Java five times*/
  2. public class code1_2 {
  3.     public static void main(String[] args) {
  4.         String box_1 = new String("Welcome to Java, ");
  5.         System.out.println(box_1 +  box_1 + box_1 + box_1 + box_1);
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement