Merge pull request #3546 from nguyennamthai/BAEL-1500
Initial commit for BAEL-1500
This commit is contained in:
commit
b0191da9f7
28
core-java/src/main/java/com/baeldung/javac/Data.java
Normal file
28
core-java/src/main/java/com/baeldung/javac/Data.java
Normal file
@ -0,0 +1,28 @@
|
||||
package com.baeldung.javac;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Data implements Serializable {
|
||||
static List<String> textList = new ArrayList();
|
||||
|
||||
private static void addText() {
|
||||
textList.add("baeldung");
|
||||
textList.add(".");
|
||||
textList.add("com");
|
||||
}
|
||||
|
||||
public List getTextList() {
|
||||
this.addText();
|
||||
List<String> result = new ArrayList<String>();
|
||||
String firstElement = (String) textList.get(0);
|
||||
switch (firstElement) {
|
||||
case "baeldung":
|
||||
result.add("baeldung");
|
||||
case "com":
|
||||
result.add("com");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
2
core-java/src/main/java/javac-args/arguments
Normal file
2
core-java/src/main/java/javac-args/arguments
Normal file
@ -0,0 +1,2 @@
|
||||
-d javac-target -verbose
|
||||
com/baeldung/javac/Data.java
|
2
core-java/src/main/java/javac-args/options
Normal file
2
core-java/src/main/java/javac-args/options
Normal file
@ -0,0 +1,2 @@
|
||||
-d javac-target
|
||||
-verbose
|
1
core-java/src/main/java/javac-args/types
Normal file
1
core-java/src/main/java/javac-args/types
Normal file
@ -0,0 +1 @@
|
||||
com/baeldung/javac/Data.java
|
3
core-java/src/main/java/javac-args/xlint-ops
Normal file
3
core-java/src/main/java/javac-args/xlint-ops
Normal file
@ -0,0 +1,3 @@
|
||||
-d javac-target
|
||||
-Xlint:rawtypes,unchecked,static,cast,serial,fallthrough
|
||||
com/baeldung/javac/Data.java
|
Loading…
x
Reference in New Issue
Block a user