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:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]