Java - Coding Bootcamp Flashcards
1
Q
Syntax for sorting
A
java.util.Arrays.sort(content);
3
Q
Syntax to define a HashSet
A
Set set = new HashSet(){{ add("a");
}};
4
Q
How to concatenate strings
A
String s3 = s1 + s2;