Last active
June 30, 2018 03:48
-
-
Save dariogabriel113/7967446262c6dae585474d5e6fde21df to your computer and use it in GitHub Desktop.
This file contains 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 TestCharacter{ | |
public static void main(String[] args){ | |
char letter = 'a'; | |
System.out.println(letter); | |
char value = 65; // It works! | |
System.out.println(value); | |
//value = (char) (value + 1); // Not works! | |
//System.out.println(value); | |
String word = "Lorem ipsum dolor sit amet"; | |
System.out.println(word); | |
word = word + 2020; | |
System.out.println(word); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment