1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
What is char?
char = character (single letter, 16-bit).
๐ Example: char c = 'A';.
What number is 'A'?
'A' = 65 in Unicode.
๐ Example: char c = 65; // 'A'.
What is String?
String = text (object).
๐ Example: String s = "Hello";.
Can Strings be changed?
No, Strings are immutable (cannot change directly).
๐ Example: "Hi" + "!" makes a new String.
First letter of "Hello"?
'H'
๐ Example: "Hello".charAt(0) = 'H'.
How many letters in "Hello"?
A: 5.
๐ Example: "Hello".length() = 5
"Hello".substring(0,3) = ?
"Hel".
"5" + "5" = ?
"55".
How turn "123" into number
Integer.parseInt("123").
What does Scanner .nextLine() do?
Reads a whole line of text.
๐ Example: User types: I like Java.