I would guess because OP was getting flak for crossposting, or maybe he found the answer and wants to get rid of any evidence of getting homework help online?
Type: Posts; User: KevinWorkman
I would guess because OP was getting flak for crossposting, or maybe he found the answer and wants to get rid of any evidence of getting homework help online?
For the number at the start, you're appending the value of the array at index i. I'm not sure how your algorithm works, but you need to make sure you're filling the array correctly. For the number at...
I just realized that you're using AWT instead of Swing. I'm not sure how AWT deals with escape characters and html. Is there a reason you aren't using Swing?
Also, I was wrong about escape...
There are a couple ways to format text. You can either use html or escape characters such as \n for a newline and \t for a tab.
Well, this is the section of code we really care about:
String mystring="";
for(int i=0;i<intArray.length;i++){
if(intArray[i]>0)
{
mystring+=String.valueOf(intArray[i]);
...
When posting code, please use the highlight tag to preserve formatting. Also, code should be in the form of an SSCCE. For example, I'm not sure what's giving you trouble- does the algorithm work?...