My Perl is functional, but I finally decided to bite the bullet and learn Java, so please be gentle, I'm a newbie.
I have 14 lines of tab seperated data in an external file, comprising an integer value 'n' (which may or may not be present), and two double values 't' and 'c' as follows;
Expand|Select|Wrap|Line Numbers
- 2 0.5773502692 1
- -0.5773502692 1
- 3 0.7745966692 0.5555555556
- 0 0.8888888889
- -0.7745966692 0.5555555556
- 4 0.8611363116 0.3478548451
- 0.3399810436 0.6521451549
- -0.3399810436 0.6521451549
- -0.8611363116 0.3478548451
- 5 0.9061798459 0.2369268850
- 0.5384693101 0.4786286705
- 0 0.5688888889
- -0.5384693101 0.4786286705
- -0.9061798459 0.2369268850
Expand|Select|Wrap|Line Numbers
- int n[]
- double t[], c[], x[], and f[]
I'm not yet familiar enough with java syntax to create, initialise, insert, manipulate, and write multi-dimensional array data of more than one type. Here I'd like help creating the data structure, and reading data in.
Any suggested code segments, or direction to tutorial resources would be warmly appreciated.
Thank you in advance.
Regards,
Nostradormouse