Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 4 of 4
Search took 0.02 seconds.
Search: Posts Made By: ezra
Forum: Java and JSP 11-16-2012, 04:11 AM
Replies: 2
Views: 706
Posted By ezra
inputting in to jfields

So I have this code:

static ArrayList<String> firstname = new ArrayList();
static ArrayList<String> lastname = new ArrayList();
static ArrayList<String> address = new ArrayList();
...
Forum: Java and JSP 11-16-2012, 02:42 AM
Replies: 7
Views: 480
Posted By ezra
well i found the problem... the variables that...

well i found the problem... the variables that were added to "lastname" were.... never added. but i don't really know how to add them... the code i have is about 50 lines though, are you allowed to...
Forum: Java and JSP 11-16-2012, 02:03 AM
Replies: 7
Views: 480
Posted By ezra
i thought of that also, as you can see with one...

i thought of that also, as you can see with one of the lines commented out... I tried
int x = lastname.size() - 1;
same thing...
also i just tried all 3 of the options you kindly provided, but...
Forum: Java and JSP 11-16-2012, 12:52 AM
Replies: 7
Views: 480
Posted By ezra
EASY problem with arraylist indexoutofboundsexeption

ArrayList<String> lastname2 = new ArrayList();
//int x = lastname.size() - 1;
int x = lastname.size();
//System.out.print(x);
do
{
...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT +1. The time now is 03:32 PM.