Hi Guys,
I have a List defined to hold IP addresses i intend to fetch from my database table;
ArrayList<InetAddress> ipublicip = new ArrayList<InetAddress>();
My problem is if i do;
ipublicip.add(rs.getInt(4));//which is the IP address field on the table
There's a type mismatch issue there, was wondering if anyone know how to get the IP address and pass it to the List without any issues.
The addresses are stored on the table using inet datatype.
Expert ideas please.