|
Generally it's not a good idea to do a straight translation from C into Java because often Java has core libraries to do things that you'd normally need to do yourself in C. Why don't you post your Java code, and we can work on optimizing that. And if you can, beautify it before posting so it makes it easier to read and understand.
|