Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: Help with errors Excercise -create class program and objects.

    The asssignment says:
    The int token arg is to be passed to the addToken() method.

    I don't understand the problem with the id variable(s).
    The statement that starts with:
    String id
    defines a...
  2. Re: Help with errors Excercise -create class program and objects.

    Is that what the assignment says to do?

    That says to pass an int value as an arg

    About the variable: id
    You can use it more than one time
    or you can define a new variable (like id2) and use...
  3. Re: Help with errors Excercise -create class program and objects.

    If there are two variables with the same name, change the name of one of them:

    String id = something; // define variable: id and assign it a value
    ...
    String id2 = somethingelse; //define new...
  4. Re: Help with errors Excercise -create class program and objects.

    There can only be one variable with each name. The compiler sees two variables with the name: id.
    Either change the name of one of them, for example: id2
    or reuse the first variable and do not...
Results 1 to 4 of 4