Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EqTest6{
- public static void main(String argv[]){
- String str = "Java";
- StringBuffer buffer = new StringBuffer(str);
- if(str.equals(buffer)){
- System.out.println("Both are equal");
- }
- else{
- System.out.println("Both are not equal");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment