View Single Post
  #4   Spotlight this post!  
Unread 25-03-2016, 23:42
Jeringo Jeringo is offline
Registered User
FRC #4749
 
Join Date: Jan 2016
Location: Atlanta
Posts: 10
Jeringo is an unknown quantity at this point
Re: getNumberArray(String) is deprecated

Quote:
Originally Posted by soundfx View Post
This new method allows you to set a default value as a second parameter to return if no value can be found. The new method is getNumberArray(String key, Double[] defaultValue).
after using
Code:
double[] defaultval = new double[0];
getNumberArray("width", defaultval );
it says defaultval is a double but it needs to be a double[]
forgive me if im missing something very obvious switched over to java 4 days ago and arrays are not my strong suit

Last edited by Jeringo : 25-03-2016 at 23:55.