i am using a java program and i need to store two sets of data (radius and thickness) there are elven of these i need to store. my question is firstly how to store these into an array without having to do user input each time. then say i need the radius and thickness of the third detector then how do i code for this. i know it is not clearly explained but any help apreciated.
Jump to Post
Where will these pairs of numbers come from? A file or via user input?
If the numbers don't change often, then you could read them from a file that a user could fill in using an editor.
If there are two numbers that go together, you could create a simple …
All 3 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.