Search:

Type: Posts; User: Cornix

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: Why do these two lines of code not produce the same results? ("==" vs. ".equals()")

    I am trying to teach theory, not compiler optimization.
  2. [SOLVED] Re: Why do these two lines of code not produce the same results? ("==" vs. ".equals()")

    Look at the following code:

    String a = "abc";
    String b = "abc";
    boolean equal = a == b;
    Here you have 2 variables of type String, one of them is a and one of them is b.
    Both variables are...
Results 1 to 2 of 2