SHARE
TWEET

Untitled

a guest Feb 16th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Test{
  2.     public static void main(String[] args){
  3.         String myStr = "good";
  4.         char[] myCharArr = {'g','o','o','d'};
  5.  
  6.         String newStr = null;
  7.  
  8.         String newStr2 = "null";
  9.  
  10.  
  11.         System.out.println(newStr2.equals(newStr));
  12.  
  13.         newStr = newStr + 'g';
  14.         newStr2 = newStr2 + 'g';
  15.  
  16.         System.out.println(newStr2.equals(newStr));
  17.  
  18.         System.out.println(newStr + "t" + newStr2);
  19.  
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top