1
I have to use vector public static String vetor[] = new String [15];
in the class... but this class is used in a Servlet. And the size I need the vector is what the user chooses... how can I pass the parameter that defines the vector size. I know this 15 is only representative... I need a variable, but how to declare a class vector using a variable that comes from Servlet?
this I already do... my problem is only in the vector(array) part of Java
– Pacíficão
You just pick up & #Xa;
String valor = (String) request.getAttribute("key");
String meuArray = new String[valor];
– Danilo Oliveira
Edit your answer, so I withdraw the negative vote... are the standards.
– Pacíficão
I edited, I was not very clear in the reply, I’m sorry, I hope I helped =D
– Danilo Oliveira
Still the
meuArray
not an array, fix ai @Danilooliveira. :)– Cold
Okay, what a lack of attention from me...
– Danilo Oliveira