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
package document; | |
import java.util.List; | |
/** | |
* A naive implementation of the Document abstract class. | |
*/ | |
public class BasicDocument extends Document | |
{ | |
/** Create a new BasicDocument object |
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
<h1 id="스프링의-소개">스프링의 소개</h1> | |
<h2 id="스프링이란">스프링이란?</h2> | |
<ul> | |
<li>자바 엔터프라이즈 개발을 편하게 해주는 오픈소스 경량급 애플리케이션 프레임워크</li> | |
<li>EJB(Enterprise Java Beans)의 단점을 보완한 프레임 워크</li> | |
<li>DI(Dependency Injection, 의존성 주입)과 AOP(Aspect-Oriented Programing, 관점 지향 프로그래밍)이 지원되는 경량 컨테이너 & 프레임워크</li> | |
<li>자바 플랫픔으로서 자바 애플리케이션을 개발하는데 필요한 하부 구조를 포괄적으로 제공한다.</li> | |
<li>스프링이 하부 구조를 처리하므로 개발자는 애플리케이션 개발에 집중할 수 있다.</li> |
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
import java.util.Scanner; | |
public class ASCII { | |
public static void main(String[] args) { | |
System.out.println((int)new Scanner(System.in).nextLine().charAt(0)); | |
} | |
} |
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
import java.util.Scanner; | |
public class SangsuAnswer { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
String[] inputs = sc.nextLine().split(" "); | |
int maxNumber = 0; | |
for (int i = 0; i < inputs.length; i++) { | |
int number = Integer.parseInt(String.valueOf(new StringBuilder(inputs[i]).reverse())); |
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
import java.util.Scanner; | |
import java.util.Stack; | |
public class Main { | |
private static final String OPEN_BRACKET = "("; | |
private static final String CLOSE_BRACKET = ")"; | |
private static final String OPEN_SQUARE_BRACKET = "["; | |
private static final String CLOSE_SQUARE_BRACKET = "]"; | |
private static final String BRACKET_VALUE = "2"; |
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
package boj; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
public class OrderAscN { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int numberOfInput = Integer.parseInt(sc.nextLine()); |
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
package boj; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.Arrays; | |
public class OrderCoordinate { | |
public static void main(String[] args) throws IOException { |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.Arrays; | |
public class OrderAge { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
int numberOfMember = Integer.parseInt(br.readLine()); |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class ROT13 { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
char[] chars = br.readLine().trim().toCharArray(); | |
int len = chars.length; |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
/** | |
* Problem | |
* 소수란 1과 자기 자신으로만 나누어떨어지는 수를 말한다. 예를 들면 1, 2, 3, 5, 17, 101, 10007 등이 소수이다. 이 문제에서는 편의상 1도 소수로 하자. | |
* | |
* 알파벳 대소문자로 이루어진 영어 단어가 하나 있을 때, a를 1로, b를 2로, …, z를 26으로, A를 27로, …, Z를 52로 하여 그 합을 구한다. 예를 들어 cyworld는 합을 구하면 100이 되고, abcd는 10이 된다. | |
* |
OlderNewer