Search:

Type: Posts; User: javapenguin

Search: Search took 0.10 seconds.

  1. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    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. ...
  2. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    Wouldn't it be better to have two parallel 1D arrays than to have a 2D array?
  3. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional 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...
  4. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    Also, if you're calling it tester, it won't recognize it as I've called it Schedule
  5. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    Get rid of my package class and it'll work.

    remove "package sorting;"
  6. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    package sorting;

    import java.util.*;
    import javax.swing.*;
    public class Schedule
    {
    public static void main(String[] args)
    {
  7. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    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)...
  8. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    First of all, it'd be

    if (myClass.equals(classSchedule[x][y])
    as it's 2D
  9. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    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[][]...
  10. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    Looks like it's working to me.

    What's the problem?
  11. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    Also, if that's not what it is, try changing the
    ++x to an x++ to see if that works.
  12. Replies
    18
    Views
    1,541

    Re: does not mesh with two-eimensional array

    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.
Results 1 to 12 of 13