Problem


[ 다음 글들 ] [ 이어서 글올리기(답하기) ] [ 자바 묻고 답하기 ]

글쓴이 :Sung Yi 2000년 3월 05일 10:59:37

In Reply to: 이 프로그램 확인 좀 부탁드립니다......(ㅠㅠ) posted by 형동 on 2000년 3월 03일 16:44:30:

Hello,


I suspect that your problem lies on this line.


list = fname.substring(0,14);


If the list string is shorter than 14, you will get an exception. For some reason, if you have to check for first 14 chars, make sure that the input string is at least 14. Or you can substitute 14 with a variable.


About getch(). It depends on what you want to do. In general, if my memory serves it right, the getch() function is used to capture the echoless keyboard input.


In Java, if you want to capture the keyboard input, you will have to tap in to event handlers. They don't echo anything at all unless you make it to.


If you want to read the keyboard input in text mode, Java does not provide the method getch() because it does not need to.


Anyway, this helps.


Sung Yi


Lead Technical Specialist, IS


Payless ShoeSource, inc
World Headquarters.
Topeka, KS
USA


다음 글들:



이어서 글올리기(답하기)

이름:
E-Mail:
제목:
내용:
HTML 태그 포함 여부: HTML 문서일 경우 체크
관련 URL(선택):
URL 제목(선택):
관련 이미지 URL:


[ 다음 글들 ] [ 이어서 글올리기(답하기) ] [ 자바 묻고 답하기 ]