Answers for "compares the values within two strings on jShell"

0

compares the values within two strings on jShell

> String firstString = new String("hello");
java.lang.String firstString = "hello"

> String secondString = new String("hello");
java.lang.String secondString = "hello"

> boolean stringComparison = firstString.equals(secondString);
boolean stringComparison = true
Posted by: Guest on July-25-2021

Browse Popular Code Answers by Language