Code/JAVA
-
Struts + Spring + iBatis 환경 세팅Code/JAVA 2008. 6. 20. 15:52
1. JDK는 알아서 설치.... 2. Apache 2.0.63 URL : http://mirror.apache-kr.org/httpd/binaries/win32/apache_2.0.63-win32-x86-no_ssl.msi " SETUP형식이라 "다음" 클릭으로 해결 " 3. tomcat 5.5.26 URL : http://apache.tt.co.kr/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.exe 3-1. " SETUP형식이라 "다음" 클릭으로 해결 " 3-2. PATH SET // 자신의 경로로 설정 CATALINA_HOME : C:\Program Files\Apache Software Foundation\Tomcat 5.5 4. MOD_JK 1.2.2..
-
java IOCode/JAVA 2007. 10. 28. 16:53
/* import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; */ import java.io.*; public class io { public static void main(String[] test) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); // 캐릭터형 System.out.print("a : "); char a = (char)System.in.read(); // \r\n 등의 값 처리 System.in.read(); // 문자열 System.out.print("b : ..
-
JAVA Quick_Sort ...Code/JAVA 2007. 5. 23. 14:28
public class QSortAlgorithm extends SortAlgorithm { private boolean pauseTrue(int lo, int hi) throws Exception { super.pause(lo, hi); return true; } void QuickSort(int a[], int lo0, int hi0) throws Exception { int lo = lo0; int hi = hi0; int mid; if ( hi0 > lo0) { mid = a[ ( lo0 + hi0 ) / 2 ]; while( lo lo0 ) && pauseTrue(lo0, hi0) && ( a[hi] > mid )) --hi; if( lo
-
-
개굴님의 매초당 출력+_+ 문제... 나름 해결한것 ...Code/JAVA 2007. 5. 16. 16:17
import java.util.*; public class se { public static int b() { Date d = new Date(); int b = d.getSeconds(); return b++; } public static void main(String args[]) { Date f = new Date(); System.out.println(new Date()); int c = 0; while(true){ int a = b(); if(a >= c && a != 0){ System.out.println(b()); if(c == 0 || a > c || a == c){ c = a + 1; } } else if(a == 0 && c == 60) { System.out.println(b());..