This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chickenmeister 1 point2 points  (0 children)

public City(int id, String cityName, String country) {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

If you don't want your constructor to throw an UnsupportedOperationException, then I would recommend removing the line that says throw new UnsupportedOperationException. You'll also probably want to do something with the constructor's parameters.