Results 1 to 3 of 3
  1. #1
    javaprogr is offline Member
    Join Date
    Nov 2013
    Posts
    6
    Rep Power
    0

    Default java error problem

    hi i got this error
    choice cannot be resolved in my client
    System.out.println("command: ");
    String command= scan.next();
    library.getUserCommand(board, choice.charAt(0));
    and in library i have this


    public static int[][] getUserCommand(int[][] board,char choice){
    if (choice == 'l'){
    aristera(board , vresmiden(board),vresmiden1(board) );
    } else if (choice =='r'){
    dexia(board, vresmiden(board),vresmiden1(board));
    } else if (choice == 'u') {
    panw(board, vresmiden(board), vresmiden1(board));
    } else if (choice == 'd'){
    katw(board , vresmiden(board),vresmiden1(board));
    } else if (choice == 'e'){
    System.exit(0);
    }

    return board;
    }

    why i got this error in client?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,401
    Rep Power
    25

    Default Re: java error problem

    Please copy the full text of the error message and paste it here. It has important info about the error.

    Please edit your post and wrap your code with code tags:
    [code=java]
    YOUR CODE HERE
    [/code]
    to get highlighting and preserve formatting.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    javin.paul is offline Member
    Join Date
    Oct 2011
    Posts
    35
    Rep Power
    0

    Default Re: java error problem

    May be a spelling mistake, you can use Ctrl + F to find exact word reported as not find. By the way, it does help if you put complete code and error message.

Similar Threads

  1. Replies: 6
    Last Post: 02-11-2013, 05:22 AM
  2. Replies: 3
    Last Post: 05-08-2012, 05:26 PM
  3. Replies: 1
    Last Post: 11-06-2011, 04:41 PM
  4. Replies: 2
    Last Post: 11-06-2011, 04:40 PM
  5. Replies: 6
    Last Post: 12-04-2010, 08:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •