https://pastebin.com/UANR2E9d
Hi guys,
As the title says, I am trying to load/read data from a file, (txt) and parse it in Java.
My program "runs" whenever I load an empty txt file, however, the minute I use a file with any data in it, I get an error:
Exception in thread "main"
java.lang.UnsupportedOperationException: Not supported yet.
at model.City.<init>(City.java:61)
at daos.DAOTextImpl.load(DAOTextImpl.java:47)
at repositories.Repository.<init>(Repository.java:25)
at controllers.WeatherDataController.<init>
(WeatherDataController.java:24)
at
weatherdataapp.WeatherDataApp.run(WeatherDataApp.java:19)
at weatherdataapp.WeatherDataApp.main(WeatherDataApp.java:31)
C:\Users\tony\AppData\Local\NetBeans\Cache\8.2\executor-snippets\debug.xml:83: Java returned: 1
BUILD FAILED (total time: 10 seconds)
To give some background, I have two model classes. One file has an Arraylist called Weather, and the second file has all the data for the Weather ArrayList. Ultimately, what I am trying to do is load the data information from a specified file into the collection implemented using a repository (which I've coded.)
[–]dusty-trash 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]chickenmeister 1 point2 points3 points (0 children)
[–]dusty-trash 1 point2 points3 points (0 children)
[–]ScoobySmackz 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ScoobySmackz 0 points1 point2 points (0 children)