public void thisisnotworking() { Scanner input=new Scanner(System.in); String cardA; String cardB; System.out.print(\"Enter Card: \"); cardA=input.nextLi
You must cast the return value of the readLine method to an Object, and then call the toString() method:
readLine
Object
toString()
cardA=((Object)in.readLine()).toString();