Could somebody help me with my program? It's almost done and I'm stuck and am spending all day when I could be getting it over with, if I weren't waiting patiently all day for help.
Please help. ...
Type: Posts; User: javapenguin
Could somebody help me with my program? It's almost done and I'm stuck and am spending all day when I could be getting it over with, if I weren't waiting patiently all day for help.
Please help. ...
Wouldn't it be better to have two parallel 1D arrays than to have a 2D array?
I have AIM, but am not on a computer that I could use it at the moment.
Also, I've currently got it blocked so that only those on my buddy list can IM me. I'll change it later when I get back to...
Also, if you're calling it tester, it won't recognize it as I've called it Schedule
Get rid of my package class and it'll work.
remove "package sorting;"
package sorting;
import java.util.*;
import javax.swing.*;
public class Schedule
{
public static void main(String[] args)
{
I still am baffled as to why it's not working, but I've gotten it to only show it once.
import java.util.*;
import javax.swing.*;
public class Schedule
{
public static void main(String[] args)...
First of all, it'd be
if (myClass.equals(classSchedule[x][y])
as it's 2D
String[][] classSchedule = { {"CIS 110 ", "ENG 111 ", "MAT 070 ","WEB 110 "},
{"Wen 4:40 ", "Tue 5:40 ", "Mon 1:25 ", "Sat 1:00 "}};
What happens if you change the above to
String[][]...
Looks like it's working to me.
What's the problem?
Also, if that's not what it is, try changing the
++x to an x++ to see if that works.
Wait....I see now.
Your for loop only deals with the if statement after it. It doesn't bother with anything else.
You need brackets around the parts in the for loop.