I'm new to Java...

Hi why those aren't true:

Example 1:
-------------------------------------------
StringBuffer sb = new StringBuffer("55555");
char c = 5;

if(sb.charAt(2) == c){
System.out.println("True");
}
-------------------------------------------

Example 2:
-------------------------------------------
StringBuffer sb = new StringBuffer("55555");
String s = "5";

if(sb.substring(1,2) == s){
System.out.println("True");
}
-------------------------------------------

Any suggestions ? Thank you.