SHARE
TWEET

Untitled

a guest Jun 19th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.");
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top