Character tmp = '/'; if("/".equals(tmp)){ System.out.print("error"); } if("/".equals(tmp.toString())){ System.out.print("true"); }
Character tmp = '/'; if("/".equals(tmp)){ System.out.print("error"); } if("/".equals(tmp.toString())){ System.out.print("true"); }