Topic: 谁有办法取得他的值?

  Print this page

1.谁有办法取得他的值? Copy to clipboard
Posted by: fython
Posted on: 2004-10-14 18:43

try
{
char c=(char)System.in.read();
System.out.printlnCoffee;
//在这里可以取得c值
}catch(IOException e){}
//在这外面有没有什么办法取得C的值呢?在这外面好像不行

2.Re:谁有办法取得他的值? [Re: fython] Copy to clipboard
Posted by: dorrenchen
Posted on: 2004-10-15 00:27

char c = 0;
{
c=(char)System.in.read();
System.out.println;
//在这里可以取得c值
}catch(IOException e){}

3.Re:谁有办法取得他的值? [Re: fython] Copy to clipboard
Posted by: helloworld
Posted on: 2004-10-15 07:20

shoud be :

char c = '\u0000';
or
static c;


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923