开发者

Scanner to TextIO question

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜