I have a CSV file that is like:
- Orbit,a,e,i
- LEO,7168000,0,90
- MEO,20200000,0,54
What I want is that using scanner, I will be able to choose one of the two orbits I have in the CSV file. Let's say for example, using scanner if I put 1 in the console, it chooses the row of the CSV file: LEO,7168000,0,90 and if I put 2 the line: MEO,20200000,0,54.
After that from the row chosen it saves each parameter in a variable skipping the name (LEO,MEO). For example if I choose LEO orbit, it saves the variables like:
- double a = 7168000;
- double e = 0;
- double i = 90;
So in the end I can use those parameters in my program. Thank you for your answers.