only ask for data you know they exist,
if ( list.length >= 2 ) tells you if you have actually 2 values, OR a BAD LINE
also better use 2 more checks:
- trim()
- if ( val != null )
see also
only ask for data you know they exist,
if ( list.length >= 2 ) tells you if you have actually 2 values, OR a BAD LINE
also better use 2 more checks:
see also