Search:

Type: Posts; User: mrjavajava

Search: Search took 0.17 seconds.

  1. Replies
    3
    Views
    1,278

    Re: exam question help please_2

    I'm sure you know it's rude to answer a question with a question. Well I do anyway.
  2. Replies
    3
    Views
    1,278

    exam question help please_2

    Could someone please help me to understand what the degree of a search tree represents? and more precisely a search tree with a degree of 4?

    And how can I determine the best, average and worst...
  3. Replies
    1
    Views
    1,163

    exam question help please

    New types can be introduced into Java using an interface and using a class. What differences are there in how these new types are used?
  4. Replies
    3
    Views
    1,436

    Re: Please explain why I get this error...

    Excellent. Thank you
  5. Replies
    3
    Views
    1,436

    Please explain why I get this error...

    public class Votes
    {
    private int voteNumber;
    private String candidateName;
    private Votes next;

    public Votes(int v, String n)
    {
    voteNumber=v;
    candidateName=n;
  6. Replies
    5
    Views
    1,241

    Re: exam revision question help please

    error: invalid method declaration; return type required
    error: illegal character: \8230

    --- Update ---

    line 10, line 21
  7. Replies
    5
    Views
    1,241

    Re: exam revision question help please

    public class DrinkOrders
    {
    public String drinkDescription;
    public DrinkOrders next;
    public DrinkOrders(String d)
    {
    drinkDescription=d;
    next=null;
    }
    public addDrink(String d)
  8. Replies
    5
    Views
    1,241

    exam revision question help please

    Consider the following program fragment that defines a self‐referential class:



    public class DrinkOrders
    {
    public String drinkDescription;
    public DrinkOrders next;
    public DrinkOrders(String...
  9. Re: Help debugging a program that runs a game of Nim

    /**
    * Grid ADT
    * @author J.R.Dermoudy and <<INSERT YOUR NAME HERE>>
    * @version December 2005

    This file holds the Grid ADT which represents
    the Nim board. The Grid consists of an array
    of...
  10. Help debugging a program that runs a game of Nim

    G'day, I've spent most of today trying to figure out why this doesn't run as it should - when I hit start game the program runs through but doesn't display any squares - I have a problem with the...
  11. Replies
    1
    Views
    1,153

    help with defining a method

    I'm having a bit of trouble with this..



    public void emptySquare(Location l)
    /*
    Pre-condition: the given Location value is within
    the bounds of the current Grid
    object...
  12. Re: Please help with code for a method, much appreciated!!

    I'm having a bit of trouble with this..


    public void emptySquare(Location l)
    /*
    Pre-condition: the given Location value is within
    the bounds of the current Grid
    object...
  13. Re: Please help with code for a method, much appreciated!!

    great. you legend
  14. Re: Please help with code for a method, much appreciated!!

    the variables values have to be gotten from are: int r, c and location l. I assume the boolean returns true if there are null in all values of the grid at locations l from the r (row) and c (column)...
  15. Re: Please help with code for a method, much appreciated!!

    I have to fill in the areas where is marked "Complete me!!!" I cant do any of them!! any help would be much appreciated, thanks



    import java.awt.*;


    public class Grid implements...
  16. Re: Please help with code for a method, much appreciated!!

    thanks for the reply but i am unsure how to implement the code to define the method

    /*
    Pre-condition: none
    Post-condition: true is returned if the game is
    over because the grid is empty...
  17. Please help with code for a method, much appreciated!!

    public boolean gameOver()
    /*
    Pre-condition: none
    Post-condition: true is returned if the game is
    over because the grid is empty
    Informally: return whether or not the game is over...
Results 1 to 17 of 24