User Profile

Collapse

Profile Sidebar

Collapse
sallyk07
sallyk07
Last Activity: Jan 7 '07, 04:36 PM
Joined: Dec 27 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sallyk07
    replied to help with card program
    in Java
    thanks for the help
    See more | Go to post

    Leave a comment:


  • sallyk07
    replied to help with card program
    in Java
    i tried it this way but it gives me an error and i dont know how to fix it
    Card.java:19: unreachable statement
    suit = generator.nextI nt(4) + 1;
    ^
    1 error


    import java.util.Rando m;
    public class Card
    {
    private static Random generator = new Random();

    public final static int spades = 0,hearts = 1, diamonds = 2, clubs = 3;...
    See more | Go to post

    Leave a comment:


  • sallyk07
    started a topic help with card program
    in Java

    help with card program

    The question says: Design and implement a class called Card that represents a standard playing card. Each card has a suit and a face value. Create a program that deals 20 random cards.

    this is the card class i made but i dont know if it right...i also don't know how to creatre a program that deals random cards.

    public class Card
    {
    public final static int spades = 0,hearts = 1, diamonds = 2,...
    See more | Go to post

  • sallyk07
    replied to Help with student program
    in Java
    thank you for the help
    See more | Go to post

    Leave a comment:


  • sallyk07
    started a topic Help with student program
    in Java

    Help with student program

    Modify the Student class so that each student object should also contain the scores for three tests. Provide a constructor that sets all instance values based on parameter values. Overload the constructor such that each test score is assumed to initially be zero. Provide a method called setTestScore that accepts two parameters: the test number (1 through 3) and the score. Also provide a method called getTestScore that accepts the test number and...
    See more | Go to post
No activity results to display
Show More
Working...