Skip to content

Instantly share code, notes, and snippets.

@henriquehorbovyi
Created September 2, 2015 11:18
Show Gist options
  • Select an option

  • Save henriquehorbovyi/21bf7b73c632c373228d to your computer and use it in GitHub Desktop.

Select an option

Save henriquehorbovyi/21bf7b73c632c373228d to your computer and use it in GitHub Desktop.
This is a test (a crazy list)
BookDAO bdao = new BookDAO();
ArrayList<String> data = bdao.select("livro");
String cols[] = (data.get(0).split(","));
data.remove(0);
for(int i = 0; i < data.size(); i++){
String inp[] = data.get(i).split(", ");
for(int j = 0; j < inp.length-1; j++){
out.print("<br> <b>"+cols[j]+"</b><br> <input type='text' value='"+inp[j]+"'>");
}
out.print("<br><br>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment