this my problem..how can get an out that you have 2 input charactersat the same time..input1: rinput2:gif (input1=='r'&&input2=='g')System.out.println(" rg");but how come he doesnt read the System.out..
> if (input1=='r'&&input2=='g')> System.out.println(" rg");if ( input1.equals('r') && input2.equals('g') ){System.out.println(" rg");}
wat I understand is that your input1 & input2 are strings & making an "=="comparator won't work here as it compares refrences rather than the content.better use input1.equals("r") && input2.equals("g"). guess shud work.