View Single Post
  #2 (permalink)  
Old 01-21-2008, 09:19 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Code:
int n = 5; for(int j = 0; j < n; j++) System.out.print("*"); System.out.println();
You just have to play around with print statements and loops. Imagination and play are the keys to this kind of discovery/exploration.
Reply With Quote