This file contains hidden or 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
/** | |
* Fast Campus 안드로이드 앱 개발 입문 | |
* Java for Android (by mindwing) | |
* [1일차] 강의노트 - 변수, 연산자, 선택문, 반복문 | |
* 필수 예제1 | |
*/ | |
public class D1_HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("_____"); | |
} |
This file contains hidden or 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
/** | |
* Fast Campus 안드로이드 앱 개발 입문 캠프 | |
* Java for Android (by mindwing) | |
* [3일차] 강의노트 - 배열, 메서드 정의와 호출방법, I/O | |
* 도전과제3 - 커맨드 라인 인자길이의 밑변을 가지는 직각삼각형 모양 출력 | |
*/ | |
public class D3_Challenge_3_1 { | |
public static void main(String[] args) { | |
if (args.length == 0) { | |
System.out.println("직각삼각형 밑변의 길이를 정해주세요."); |
This file contains hidden or 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
/** | |
* Fast Campus 안드로이드 앱 개발 입문 캠프 | |
* Java for Android (by mindwing) | |
* [3일차] 강의노트 - 배열, 메서드 정의와 호출방법, I/O | |
* 도전과제3 - 커맨드 라인 인자길이의 밑변을 가지는 직각삼각형 모양 출력 | |
*/ | |
public class D3_Challenge_3_2 { | |
public static void main(String[] args) { | |
if (args.length == 0) { | |
System.out.println("직각삼각형 밑변의 길이를 정해주세요."); |
This file contains hidden or 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
/** | |
* Fast Campus 안드로이드 앱 개발 입문 캠프 | |
* Java for Android (by mindwing) | |
* [3일차] 강의노트 - 배열, 메서드 정의와 호출방법, I/O | |
* 도전과제3 - 커맨드 라인 인자길이의 밑변을 가지는 직각삼각형 모양 출력 | |
*/ | |
public class D3_Challenge_3_1 { | |
public static void main(String[] args) { | |
if (args.length == 0) { | |
System.out.println("직각삼각형 밑변의 길이를 정해주세요."); |
This file contains hidden or 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
/** | |
* Created by mindwing on 2015-12-08. | |
*/ | |
class SinsaApt2 { | |
int floorCount; | |
int parkingLotCount1; | |
int parkingLotCount2; | |
int evelatorCount; | |
int getTotalParkingLotCount() { |
This file contains hidden or 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
/** | |
* Created by mindwing on 2015-12-12. | |
*/ | |
public class Singleton { | |
private static Singleton instance = new Singleton(); | |
private Singleton() { | |
} | |
public static Singleton getInstance() { |
This file contains hidden or 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
package cosmos.aquila; | |
/** | |
* Created by mindwing on 2015-12-13. | |
* Altair 는 독수리자리(Aquila)의 알파성(가장 밝은 별)입니다. | |
*/ | |
public class Altair { | |
public String getName() { | |
return "독수리자리-알타이르(견우)"; | |
} |
This file contains hidden or 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
public class AnsiColor { | |
public static final String ANSI_RESET = "\u001B[0m"; | |
public static final String ANSI_BLACK = "\u001B[30m"; | |
public static final String ANSI_RED = "\u001B[31m"; | |
public static final String ANSI_GREEN = "\u001B[32m"; | |
public static final String ANSI_YELLOW = "\u001B[33m"; | |
public static final String ANSI_BLUE = "\u001B[34m"; | |
public static final String ANSI_PURPLE = "\u001B[35m"; | |
public static final String ANSI_CYAN = "\u001B[36m"; | |
public static final String ANSI_WHITE = "\u001B[37m"; |
This file contains hidden or 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
import java.util.ArrayList; | |
/** | |
* Created by mindwing on 2016-01-02. | |
* 완전순열 | |
*/ | |
public class Test { | |
public static void main(String[] args) throws Exception { | |
ArrayList<String> arr = new ArrayList<>(); |
This file contains hidden or 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
/** | |
* Created by mindwing on 2016-01-04. | |
*/ | |
public class FactorialTest { | |
static int factorial(int f) { | |
if (f == 0) { | |
return 1; | |
} else { | |
return f * factorial(f - 1); | |
} |
OlderNewer