aspose file tools
The moose likes Beginning Java and the fly likes optimize the following code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "optimize the following code" Watch "optimize the following code" New topic
Author

optimize the following code

Sandeep Bhandari
Ranch Hand

Joined: Apr 16, 2004
Posts: 201
Below given code prints the following output:

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





Can you help to remove those nested redundant while loops?? I guess they are causing bottleneck.


SCJP 96% | SCWCD 90%| SCJP mock exams | My SCJP blog
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9955
    
    6

What have you tried? What worked? What didn't?

We're not really going to do it for you...


Never ascribe to malice that which can be adequately explained by stupidity.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: optimize the following code
 
Similar Threads
how to complete this code?
which is better - array or arraylist??
u_int8_t in java
Need An Idea to solve This
Sorting Array of Strings