-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from KEEPER31337/practice01-stopmin
Solved: Practice 3~4
- Loading branch information
Showing
22 changed files
with
208 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package Practice.stopmin; | ||
|
||
public enum Coffeetype { | ||
AMERICANO, | ||
ICE_AMERICANO, | ||
CAFE_LATTE; | ||
public static void main(String[] args) { | ||
System.out.println(AMERICANO); | ||
for (Coffeetype type : Coffeetype.values()) { | ||
System.out.println(type); | ||
} | ||
} | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package Practice.stopmin; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class FinalPractice { | ||
|
||
public static void main(String[] args) { | ||
final int n = 10; | ||
|
||
final ArrayList<String> a = new ArrayList<>(); | ||
|
||
a.add("hello~"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package Practice.stopmin; | ||
|
||
public class HelloWorld { | ||
|
||
public static void main(String[] args) { | ||
System.out.println("Hello World!"); // 표준 출력 | ||
System.err.println("Error!"); // 표준 에러 출력 | ||
System.out.println("숫자" + 3 + "~~~"); | ||
|
||
Sample sample = new Sample("EE"); | ||
sample.myPublic(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package Practice.stopmin; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Comparator; | ||
|
||
public class ListPractice { | ||
|
||
public static void main(String[] args) { | ||
ArrayList pitches = new ArrayList(); | ||
pitches.add("123"); | ||
pitches.add("312"); | ||
pitches.add("213"); | ||
System.out.println(pitches); | ||
|
||
System.out.println("pitches.get(1) = " + pitches.get(1)); | ||
System.out.println("pitches.size() = " + pitches.size()); | ||
|
||
pitches.sort(Comparator.naturalOrder()); | ||
System.out.println(pitches); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package Practice.stopmin; | ||
|
||
public class NumberPractice { | ||
|
||
public static void main(String[] args) { | ||
int age = 21; | ||
long count = 102938901283012093L; | ||
|
||
age += 10; | ||
|
||
boolean isTest = true; // is~, has~, can~ | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package Practice.stopmin; | ||
|
||
public class Sample { | ||
|
||
|
||
private String message; // 속성, 필드 | ||
|
||
public Sample(String message) { | ||
this.message = message; | ||
} | ||
|
||
public static void main(String[] args) { | ||
Sample sample = new Sample("ABDERERER"); | ||
} | ||
|
||
public void myPublic() { | ||
System.out.println(message); | ||
} | ||
|
||
protected void myP() { | ||
|
||
} | ||
|
||
private void myP2() { | ||
|
||
} | ||
|
||
void myD() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package Practice.stopmin; | ||
|
||
public class StringPractice { | ||
|
||
public static void main(String[] args) { | ||
String a = "Happy"; // 리터럴 방식 | ||
String b = new String("Java"); // 객체 생성 | ||
|
||
System.out.println("a.eqauls(b) = " + a.equals(b)); | ||
|
||
boolean c = true; // 프리미티브 -> Null을 담을 수 없다. 대신 string은 안된다!! | ||
Boolean e = true; // 레퍼클래스 | ||
|
||
e = null; | ||
|
||
int f = 10; | ||
Integer g = 10; | ||
|
||
g = null; | ||
|
||
a.equals(b); | ||
|
||
// indexOf | ||
// contains | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters