Welcome to DrJava.  Working directory is C:\Users\dgerman
> String a = "tom"
> String b = a.substring(0); 
> b
"tom"
> b == a
true
> "tom" == "tom"
false


---------------

Welcome to DrJava.  Working directory is C:\Users\dgerman
> String a = "tom";
> String b = a.substring(0); 
> a == ("t" + "om")
false
> a == b
true
> "tom" == "tom"
false
> "tom".equals("tom")
true


------------------

Welcome to DrJava.  Working directory is C:\Users\dgerman
> 2 
2
> 2 + 2
4
> 2 == 2
true
> 1 + 1 == 2
true
> import java.util.*
> ArrayList<String> a = new ArrayList<String>();
> a
[]
> ArrayList<int> a = new ArrayList<int>();
Static Error: Type has incompatible bounds
> ArrayList<Integer> a = new ArrayList<Integer>();
> a
[]
> a.add(2)
true
> a.add(5)
true
> a
[2, 5]
> Integer x, y;
> x
null
> y
null
> int u;
> u
0
> x = 2
2
> y = 2
2
> x 
2
> y
2
> x == y
true
> x = new Integer(2)
2
> y = new Integer(2)
2
> x == y
false
> x
2
> y
2
> x + 0 == y + 0
true


--

public class ex {
  public static void main(String[] args){
    Integer a = new Integer(3);
    int b = 3;
    System.out.println(a == b);
  }
}

Welcome to DrJava.  Working directory is C:\Users\dgerman
> String a = "tom"
> String b = a.substring(0); 
> b
"tom"
> b == a
true
> "tom" == "tom"
false


---------------

Welcome to DrJava.  Working directory is C:\Users\dgerman
> String a = "tom";
> String b = a.substring(0); 
> a == ("t" + "om")
false
> a == b
true
> "tom" == "tom"
false
> "tom".equals("tom")
true


------------------

Welcome to DrJava.  Working directory is C:\Users\dgerman
> 2 
2
> 2 + 2
4
> 2 == 2
true
> 1 + 1 == 2
true
> import java.util.*
> ArrayList<String> a = new ArrayList<String>();
> a
[]
> ArrayList<int> a = new ArrayList<int>();
Static Error: Type has incompatible bounds
> ArrayList<Integer> a = new ArrayList<Integer>();
> a
[]
> a.add(2)
true
> a.add(5)
true
> a
[2, 5]
> Integer x, y;
> x
null
> y
null
> int u;
> u
0
> x = 2
2
> y = 2
2
> x 
2
> y
2
> x == y
true
> x = new Integer(2)
2
> y = new Integer(2)
2
> x == y
false
> x
2
> y
2
> x + 0 == y + 0
true


--

public class ex {
  public static void main(String[] args){
    Integer a = new Integer(3);
    int b = 3;
    System.out.println(a == b);
  }
}

Mr. Kayl Walton was present too. 

--