*** 검색어: nabiro, JAVA, eclipse, 매개변수, 변수, 인자 Run > Run Configuration > Arguments 탭 입력하는 매개변수 란에 공백을 기준으로 매개변수를 입력하면 됩니다.
*** 검색어: nabiro, java, do, while, example, sample, 예제 // do~while문 예제 import java.io.*; public class P179 { public static void main(String[] ar) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int a=0, b=0, c=0, total=0; char point=0; float avg=0.0f; do { System.out.print("a="); a=Integer.parseInt(in.readLine()); } while (a 100); do { Syst..
*** 검색어: nabiro, java, while, 예제, sample // while문 예제입니다 import java.io.*; public class Test { public static void main(String[] ar) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int i = 0; while(true){ System.out.print("Input number:"); i = Integer.parseInt(in.readLine()); if(i > 10){ break;// while 문을 탈출 } else if (i < 5) { continue;// 아래의 라인은 실행..
*** 검색어: nabiro, eclipse, PlugIn, 설치, 오류, 에러, WebSphere, other eclipse product eclipse 디렉터리를 c:\eclipse 라고 가정할 때 해당 디렉터리에 .eclipseproduct 라는 파일이 없는 경우 PVCS Version Manager Eclipse PlugIn이 설치되지 않습니다. .eclipseproduct 파일의 내용은 아래와 같습니다. (매 버전마다 틀릴 수 있습니다) name=Eclipse Platform id=org.eclipse.platform version=3.4.0
*** 검색어: JAVA, java, switch, case, 예제 // switch ~ case 문을 조금 복잡하게 썼습니다. // 그냥 참조용으로 쓴 것이므로 이렇게 코딩할 필요는 없습니다. // import java.io.*; public class P158 { public static void main(String[] ar) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int i = 0; System.out.print("숫자를 입력하세요 : "); i = Integer.parseInt(in.readLine()); switch(i%4){ case 1: case 2: case ..
*** 검색어: nabiro, JAVA, if~else,if~else if, 조건문, 문자열 입력, input, 정수 import java.io.*; public class Test { public static void main(String[] ar) throws IOException { BufferedReader in = new BufferedReader (new InputStreamReader(System.in)); int inputNum = 0; System.out.print("점수를 입력하세요 = "); inputNum = Integer.parseInt(in.readLine()); if(inputNum >= 90) { System.out.println(" 수 "); } else if(inputNu..
*** 검색어: nabiro, PVCS, vdiff, diff tsisap01(pvcs):/sw/pvcs/vm/aix/ubin>vdiff -R -R-1 vmcommit.sh-arc v:/pvcs/archives/SRC/ubin/vmcommit.sh-arc Rev 1.11 (27 Jul 2010 18:02:02) v:/pvcs/archives/SRC/ubin/vmcommit.sh-arc Rev 1.10 (27 Jul 2010 14:36:54) =================== 11 11 |# --------------------------------------------------------- 12 12 |# $Archive: v:/pvcs/archives/SRC/ubin/vmcommit.sh-arc $..
*** 검색어: nabiro, scp, AIX, not found $ scp -r * 192.168.2.1:~/ ksh: scp: not found. lost connection 위와같이 scp 명령어를 실행 결과가 ksh: scp: not found. 가 표시되는 경우 대상 AIX 서버의 (위에서는 192.168.2.1) /etc/environment 파일의 PATH 경로에 scp 파일이 있는 디렉터리가 정의되어 있지 않을 때 일어나는 문제입니다. 먼저 scp 명령어의 디렉터리를 확인 192.168.2.1> which scp /usr/local/bin/scp 위 결과처럼 /usr/local/bin 디렉터리 아래에 scp 명령어가 있다면 /etc/environment 파일의 PATH 경로에 /usr/lo..
1. java test.class 이렇게 실행 명령어 내리면 에러 난다. 확장자 .class 빼라 --> java test 2. int a = 10; int b = 20; System.out.println(a + b);// 이건 결과가 30이 나온다. 만일 1020 이라는 // 문자열 처럼 나오게 하고 싶으면 // 아래처럼 하면 된다. System.out.println("" + a + b); // 문자열은 그 어떤 것과 연산이 되어도 문자열이 // 되어 버리는 성질이 있다. // [출처] 자바 기초 프로그래밍 // (주)프리렉 | 김승현 p96 char ca = 'A'; char cb = 'B'; System.out.println(ca); // A 표시 System.out.println(cb); // B..
*** 검색어: nabiro, windows 7, windows7, 윈도우7, 윈도우 7, telnet, 이상할 때, 실행 안됨 윈도우7 에서 telnet을 사용하려면 제어판 > 모든 제어판 항목 > 프로그램 및 기능 > Windows 기능 사용/사용 안함 > 텔넷 클라이언트 체크 한 후에 command line에서 telnet을 치면 Microsoft Telnet Client 시작 이스케이프 문자: 'CTRL+]' Microsoft Telnet> 요렇게 실행이 됩니다. 그런데 재수없는 경우 telnet을 실행해도 그냥 아무런 화면도 표시되지 않고 다음 라인에 커서만 껌벅일 때가 있습니다. telnet이 잘못 설치된 경우입니다. 이럴 때에는 제어판 > 모든 제어판 항목 > 프로그램 및 기능 > Windo..
*** 검색어: nabiro, 쉘스크립트, shell script, 문자열, 삭제 strB="abcdefghijklmn" strC="abcd" strA=${strB#$strC} echo strA 결과는 efghijklmn 이 나옵니다.
*** 검색어 : nabiro, 쉘스크립트, shell script, 문자열, 길이, 문자열길이, strA="abcde" strB="123" cntStrA=`echo $strA | wc -c` cntStrB=`echo $strB | wc -c` echo "strA의 길이: $cntStrA" echo "strB의 길이: $cntStrB" ================================= 결과는 strA의 길이: 6 strB의 길이: 4 위와같이 우리가 생각하는 문자열의 길이 +1 개만큼 나옵니다. 왜 +1개인지는 아직 모르겠습니다. ***** 또는 아래와 같은 방법도 있습니다. strA="abcde" echo ${#strA} 결과는 5 나오네요.