Search:

Type: Posts; User: glennder

Search: Search took 0.07 seconds.

  1. Re: Strings in switch are not supported in source 1.5...

    Ah i see, i got it working now anyways thanks.
  2. Re: Strings in switch are not supported in source 1.5...

    I reposted the shortend version
  3. Re: Strings in switch are not supported in source 1.5...

    switch (board.pieceAt(row,col)) {

    That is the line it crashes on,
    the pieceAt method is below

    int pieceAt(int row, int col) {
    return board[row][col];
    }
  4. Strings in switch are not supported in source 1.5...

    I am creating a checkers game and im trying to paint the board but it says the switch is using a string, but its actually not. Here is the code

    public void paintComponent(Graphics g) {


    ...
Results 1 to 4 of 4