i have a method with signature int but the compiler hints me to return c which is type char.
1/ how is it possible to return char variable in this case
//scissors , paper , rock are static final in gamelogic class
public int getInput(){
String choice;
char c;
do {
System.out.println("Make a choice");
choice = sc.nextLine().toUpperCase();
c = choice.charAt(0);
if(c == 'P'){
return gameLogic.paper;
}else if(c == 'R'){
return gameLogic.rock;
}else if(c== 'S'){
return gameLogic.scissor;
}
}while(c != 'S' && c != 'R' && c != 'P');
return c;
}