I used if condition to comapare the value in the list with other value .I am not able to understand why i am not getting output.
Please check the code.
Thank you.
Instructor
Ashish Thakur Replied on 08/01/2020
Did you try debugging the code?
try printing the data as well which you're comparing.
Hi Ashish ,
This is not subject related quetion..could you please add search button in this site so that we can search button in Quetion resolution form ..which ever topic we want ..so that it is easier for us to topic found and saves the time.
Thank you
Instructor
Ashish Thakur Replied on 03/03/2020
Please refer the below code
if (list.get(index).equals(variable)) {
System.out.println("Data Matched");
} else {
System.out.println("Data Mismatched");
}