Simplification of code

Hello Experts,

I'd like to know if there's any program which can modify a code and make it more simplified / convert for loops to while / etc..


Thanks in advance!
perdoname_Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jonez176Commented:
ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier.  It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names.

http://proguard.sourceforge.net/
0
Peter HartCommented:
do you mean a program to look at a piece of  code and rewrite it into a simpler set of instructions in the same language?
0
perdoname_Author Commented:
@ chilternPC

Yes .. is that possible?

0
Peter HartCommented:
depends on what you want it simplified for - do you want the code simplified for humans to be able to understand it easier  and do you be reformatted to see the code flow i.e. indents for while loops and for loops.
you need a java beautifier - try this link:

http://www.jindent.com/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.