Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String Str1 = new String("EZ EGY TESZT");
- String Str2 = new String("ez egy teszt");
- boolean retVal;
- retVal = Str1.equals( Str2 );
- System.out.println("Visszatérés = " + retVal );
- retVal = Str1.equalsIgnoreCase( Str2 );
- System.out.println("Visszatérés = " + retVal );
- /*
- Kimenet:
- Visszatérés = false
- Visszatérés = true
- */
Advertisement
Add Comment
Please, Sign In to add comment