public JTable generateTable(String titles,Object[][] content){
  String[] titles_arr=titles.split(",");
  return new JTable(content,titles_arr);
}

public JTable generateTable ( String titles , Object [ ] [ ] content ) { String [ ] titles_arr = titles . split ( "," ) ; return new JTable ( content , titles_arr ) ; }
generates a table from titles and a 2d array of content . / / titles are split by a " , " .
