블로그
-
[java] HttpServlet 맛보기
123456789101112131415public class HttpServlet { public void service(){ System.out.println("브라우즈 요청을 처리 * System.out.println("브라우즈 요청을 처리 후 a.html보여준다"); 대신에 * jsp에서의 안에있는 코드가 들어와서 실행된다.*/ }}Colored by Color
blog.naver.com · 2016.05.12
-
[java] print와 println, printf 비교 및 printf에서 사용되는 서식 지정자 종류
123456789101112131415public class PrintfTest { public static void main(String[] args) { String name=" is %s\n", name); /* * printf에서 사용되는 서식 지정자의 종류 * 문자열 %s * 정수 %d * 실수 %f * 문자 한 자 %c */ }}Colored by Color
blog.naver.com · 2016.05.04
-
[java]doc, 문서화 주석(documentation comment)
. * @author Administrator * */public class MainTest { /** * * @param args */ public static void main( { System.out.println("bongha"); } /** * * @return */ public int numPrint(){ return 1; }}Colored by Color
blog.naver.com · 2016.05.04
-
소풍 (백준 P1242)
www.acmicpc.net/problem/1242) 123456789101112131415161718192021222324252627import java.util.Scanner; public class = in.nextInt(); K = in.nextInt(); in.close(); System.out.println(solve(N, M, K, 1)); }} Colored by Color
blog.naver.com · 2016.02.16
-
명품 C++ programming 10장 실습문제 11번
Colored By Color Scripter™123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 #include #include #include using namespace std; const int MAX = 100; class Book{private: static vector
blog.naver.com · 2015.09.11
-
(ENG) 미국교환학생 7. 학교, 친구 초대, 네일아트, 호스트 가족
ㅋㅋㅋ ( I had one experiment in chemistry class. When I put something on the fire, the fire turns their color such as red, orange, even purple.
blog.naver.com · 2015.10.04
-
명품 C++ programming Chapter 06 실습문제 8번
Colored By Color Scripter™#include #include #include #include using namespace std; const string DEFAULT = "main()"; class Trace { private: static vector tagVec; static vector msgVec; public: static void Put
blog.naver.com · 2015.09.10
-
48번째 퍼즐 - 정적 메소드
public class Q48_All_I_Get_Is_Static { public static void main(String[] args) { Dog_Q48 woofer = new () { }}Colored by Color Scriptercs "woof " 가 출력될 것이라 생각했지만 결과는 다음.......
blog.naver.com · 2015.05.01
-
51번째 퍼즐 - 포인트가 뭐야?
class Point { private final int x, y; private final String name; public Point(int x, int y) { this.x Q51_What_s_the_Point extends Point { private final String color; public Q51_What_s_the_Point(int x,
blog.naver.com · 2015.05.06
-
46번째 퍼즐 - 애매한 생성자
public class Q46_The_Case_of_the_Confusing_Constructor { private Q46_The_Case_of_the_Confusing_Constructor static void main(String[] args) { new Q46_The_Case_of_the_Confusing_Constructor(null); }}Colored by Color
blog.naver.com · 2015.04.30