aspose file tools*
The moose likes Beginning Java and the fly likes optimize the following code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
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: 10916
    
  12

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

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


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: optimize the following code
 
Similar Threads
Need An Idea to solve This
which is better - array or arraylist??
u_int8_t in java
Sorting Array of Strings
how to complete this code?