if(string1 == string2){
System.out.println(same);
}else{
System.out.println(different);
}
if(string1 == string3){
System.out.println(same);
}else{
System.out.println(different);
}
if(string2 == string3){
System.out.println(same);
}else{
System.out.println(different);
}
Solution
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Nitin Saini
27 March 2023, 17:33
hi please mark my comment as solution, by clicking on the like button then click on solution.
thank you
0