Created
June 22, 2020 16:36
-
-
Save LaurentiuGabriel/e1523dd4e7edffaf5402864ce1eaedac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Application { | |
| public static void main(String[] args) { | |
| String text = new String(); | |
| text = "Hello"; | |
| String newString = text + " World!"; | |
| String newString2 = text.concat(" World!"); | |
| Integer number = 26; | |
| String numberStr = number.toString(); | |
| String text2 = "Hello2"; | |
| if(text.equals(text2)){ | |
| System.out.println("Values are equal"); | |
| } | |
| System.out.println(newString); | |
| System.out.println(newString2); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment