package com.test;

public class TestStringToLowerCase 
{
	
		
	public static void main(String args[])
	{
		String s1 = "abc";
		String s2 = "ABC";
		
		System.out.println("----- case: when string already lower ----------");
		testIfEqualsLower(s1);
		
		System.out.println("\n----- case: when string with upper case ----------");
		testIfEqualsLower(s2);
		
		
	}
	
	private static void testIfEqualsLower(String s) {
		
		
		if(s.toLowerCase() == "abc")
		{
			System.out.println("YES - literal");
		}
		
		if(s.toLowerCase().equals("abc"))
		{
			System.out.println("YES - equals func");
		}
		
		}

}
