Thanks all of you for your help. First, my homework assignment to give you a better idea of what the prof. expects from me. I just typed it up, don't know if the spacing is important. He wants us to come up with any sorting methodology that gets compiled and shown on the internet explorer. xxx.java xxx.class xxx.html
Complete the following Java program.
//This program sorts an array's values into ascending order
import java.awt.Graphics;
import java.applet.Applet
{
int a[]={55,25,66,45,8,10,12,89,68,37};
public void paint(Graphics g)
{
print(g,"Data items in original order",a,25,25);
sort();
print(g,"Data items in ascending order"",a,25,55);
}
/* A sorting method to be completed.*/
public void print(Graphics g, String head, int b[], int x, int y)
{
g.drawString(head,x,y);
X+=15;
y+=15;
for(int i=0;i<b.length;i++)
{
g.drawString(String.valueOf(b[i}),x,y);
}
}
}
Here to my dilemma. I am a MIS student and they give me this class bc. of lack of faculty to offer other classes. I am the only student with no prior programming skills. Anyway, installed Xcode and found it too complicated. I started a new project but didn't know what to do next. The Terminal is unfamiliar to me but I understand the purpose of it. Yes, I know I suck in programming but hope to change this soon.