Skip to content

Instantly share code, notes, and snippets.

@dariogabriel113
Last active June 30, 2018 03:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariogabriel113/7967446262c6dae585474d5e6fde21df to your computer and use it in GitHub Desktop.
Save dariogabriel113/7967446262c6dae585474d5e6fde21df to your computer and use it in GitHub Desktop.
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