0
Get data
System.out.print("Type initial investment: "); double principal=TextIO.getInDouble(); Anyone knows what the second line work for?
1 Answer
0
hey, double is a type of variable principal which takes input from command line. textIO is alternative for scanner. it can also print output like system.out
use official docs from oracle for such simple questions, you'll get the best answer for latest version with examples and description ;)