File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

optimize the following code

 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below given code prints the following output:

**
****
******
********





Can you help to remove those nested redundant while loops?? I guess they are causing bottleneck.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12017
24
Chrome Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried? What worked? What didn't?

We're not really going to do it for you...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic