L2.4: Strings - Comparing Strings vs Primitives (Comparing Strings)

PHOTO EMBED

Tue Oct 17 2023 07:11:50 GMT+0000 (Coordinated Universal Time)

Saved by @testpro #java

public class Main {
    public static void main(String[] args) {
 
        String testpro1 = "TestPro";
        String testpro2 = "TestPro";
 
        System.out.println(testpro1.equals(testpro2));
    }
}
// Output: true
content_copyCOPY