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();
精彩评论