+ Reply to Thread
Results 1 to 5 of 5

Thread: Java Help

  1. #1
    Chris S's Avatar
    Chris S is offline Retired Chris S is an unknown quantity at this point
    Join Date
    Mar 2005
    Posts
    1,036

    Java Help

    I need some help with some homework. I have tried and cannot find an answer.

    http://sterling.is-a-chef.com:81/java/CardTester.java

    is the said code that I am having the problem with. There are no errors being produced. The problem is that it fails on the case statement. The problem i am having is in the public static void card(xxxxx); I need some help if you can offer it.

    I would love to change the world, but they won't give me the source code

  2. #2
    dest581 is offline x10 Lieutenant dest581 is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    348

    Re: Java Help

    Don't arrays start with 0?

  3. #3
    Chris S's Avatar
    Chris S is offline Retired Chris S is an unknown quantity at this point
    Join Date
    Mar 2005
    Posts
    1,036

    Re: Java Help

    i thought that also, but it doesn't output anything if i use 0

    I would love to change the world, but they won't give me the source code

  4. #4
    YamiKaitou's Avatar
    YamiKaitou is offline x10 Elder YamiKaitou is an unknown quantity at this point
    Join Date
    Oct 2006
    Posts
    636

    Re: Java Help

    You are not allowed to use the == with strings. The == compares primitive data types only. You would have to use s[1].equals("A").

  5. #5
    Chris S's Avatar
    Chris S is offline Retired Chris S is an unknown quantity at this point
    Join Date
    Mar 2005
    Posts
    1,036

    Re: Java Help

    thank you so much. I think i might need to ask you for help in a few but... I might not

    I would love to change the world, but they won't give me the source code

+ Reply to Thread

Similar Threads

  1. Java
    By Rhianna in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 03-07-2009, 06:22 PM
  2. Java applets are allowed??
    By elserge82 in forum Free Hosting
    Replies: 5
    Last Post: 09-28-2006, 06:49 AM
  3. java code for 200 pts
    By Masta111 in forum The Marketplace
    Replies: 0
    Last Post: 08-26-2006, 04:22 AM
  4. JAVA chat?
    By michaelp in forum Graphics & Webdesign
    Replies: 3
    Last Post: 08-24-2006, 09:39 PM
  5. Java?
    By pensoftware in forum Free Hosting
    Replies: 2
    Last Post: 10-15-2005, 01:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers