String[] Q

Hi all. Yet another beginners problem. Isn't values below an array of Strings? If so what's the problem using the size() method on it?

String[] values = request.getParameterValues(UniqueID);

//compiler error!! cannot find symbol size()

for(int i=0; i<values.size(); i++)

{

//do something

}

>

[529 byte] By [Robbie_Ca] at [2007-10-2 20:20:59]
# 1
>If so what's the problem using the size() method on it? There is none. Use the length field for arrays.
IanSchneidera at 2007-7-13 23:03:25 > top of Java-index,Java Essentials,Java Programming...
# 2
Use values.length , instead of values.size()
masuda1967a at 2007-7-13 23:03:25 > top of Java-index,Java Essentials,Java Programming...