Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class Loops {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. System.out.println("Let's compact the code using for loop.");
  6.  
  7. int i;
  8.  
  9. for (i = 0; i < 10; i++)
  10.  
  11. System.out.println("Hello!");
  12.  
  13. System.out.println("Now the code looks much better.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement