This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have the following code that is for a insertionsort, problem is I think my code looks good but I can not get it to compile? I do not see what I am missing ? Any ideas what I am missing ? Thank you everyone for all the help.
Originally posted by Greg Grazioli: Ok, sorry I thought "Compile" was a common term ?
Ofcourse it is, but Fred means: tell us exactly what the error message is that the compiler gives you (copy and paste it from the command prompt, for example) - if you only say "it doesn't work", then it's much more work for anyone who's reading your question to find out what might be wrong. In other words, tell the details.
Your OS can't find the javac.exe Your OS can't find various classes Your OS can't find your .java class the compiler returns an error
and probably a few other things. Each of these things requires a different path to diagnose and fix. And if it is the last one, the error message give TREMENDOUS amounts of details on what the problem is, and WHERE it is. Posting that (since you already have it) saves anyone who wants to help you the trouble of copying your code into their editor, saving it, then compiling it yourself.
If you had posted that error message in your original post, it could have saved lots of time for the folks helping you.