Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Re: Living Without cin... or Pointers (A Thread About Java Text Adventures!)

    By looking at the data type returned by the nextLine() method and using the Player class constructor with that data type. Each constructor must have a unique set of arguments.

    There is some...
  2. Re: Living Without cin... or Pointers (A Thread About Java Text Adventures!)

    Player is a class
    p1 is defined as a variable of type Player
    new creates an instance of the class: Player
    = assigns the pointer to the class returned by new to the variable: p1
    sc is a variable...
  3. Re: Living Without cin... or Pointers (A Thread About Java Text Adventures!)

    An example:

    p1.getName());
  4. Re: Living Without cin... or Pointers (A Thread About Java Text Adventures!)

    Java doesn't have the pre-processing that C++ has to allow syntax like: cin <<
    Everything must be fully and explicitly coded. Not too many things are hidden by the compiler(except for boxing)
    You...
Results 1 to 4 of 4