mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 04:16:19 +00:00
The great rename: the old ‘website’ is now ‘website-old’, and ‘website2’ is now ‘website’.
This commit is contained in:
1 parent
72fd50b9f1
commit
8b7a7cbc81
185 files changed
+25
-25
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class ValExample {
|
||||
public String example() {
|
||||
final ArrayList<String> example = new ArrayList<String>();
|
||||
example.add("Hello, World!");
|
||||
final String foo = example.get(0);
|
||||
return foo.toLowerCase();
|
||||
}
|
||||
|
||||
public void example2() {
|
||||
final HashMap<Integer, String> map = new HashMap<Integer, String>();
|
||||
map.put(0, "zero");
|
||||
map.put(5, "five");
|
||||
for (final Map.Entry<Integer, String> entry : map.entrySet()) {
|
||||
System.out.printf("%d: %s\n", entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user