Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Re: How to take User Inputted String for color, and use it in the drawShape(x,y,x,y, Color. )

    Use if statements to compare the String to each of the desired Strings with the colors: "RED", "BLUE", etc.
    When there is a match, assign the Color variable the associated Color value: Color.RED,...
  2. Re: How to take User Inputted String for color, and use it in the drawShape(x,y,x,y, Color. )

    The value of Color._______ is set when the program is compiled. The code will need to use a variable that gets assigned a value depending on what the user types in.

    --- Update ---

    The variable...
  3. Re: How to take User Inputted String for color, and use it in the drawShape(x,y,x,y, Color. )

    The user needs to enter the type of data that the program is trying to read. The String "RED" is not a number: NumberFormatException
    Or the program needs to be rewritten to read in a String and use...
Results 1 to 3 of 3