I'm iterating over a ResultSet and save it to a ArrayList.
weatherData = Arrays.asList (
new WeatherInfo(rs.getDate(1), rs.getInt(2)...
When I do a System.out.println(weatherData); I see this in the Eclipse Console:
[com.example.project.view.ChartsData$WeatherInfo@66ee6cea, com.example.project.view.ChartsData$WeatherInfo@757d0531.....
What does it mean? Is it a value I can handle in Java or not? Is this the actual date and int that I can use in Java?
thanks
You need to override toString()
method in WeatherInfo class. What you see is its default implementation that presents its memory location.