public static void main(String args[]) throws IOException { Values object = new Values(); try { object.fetchmessages(); } catch (IOException e) { e.printStackTrace(); } object.dispaly(4); }