开发者

Scanner to TextIO question

开发者 https://www.devze.com 2023-01-09 07:53 出处:网络
I need to add a value and input it directly into an array using TextIO. I kn开发者_JAVA百科ow that if I was using Scanner I would use the in.nextDouble() function, but how would I do it using TextIO?

I need to add a value and input it directly into an array using TextIO. I kn开发者_JAVA百科ow that if I was using Scanner I would use the in.nextDouble() function, but how would I do it using TextIO?

 TextIO.put("Enter credit hours:");
 creditHour[sem][grd]+=in.nextDouble(); //I have to use TextIO here.

Thanks in advance,


Found it.

array [i][r] = TextIO.getlnDouble();

0

精彩评论

暂无评论...
验证码 换一张
取 消