title: numberformatexception and edittext in android
body: <p>Following code gives me numberformatexception. can you please tell me where to put exepcions or what to do about following lines? logcat tells that there is a problem on commented line</p>
  
  <pre><code>public void zaplatiti(){
     EditText zbrojka = (EditText) findViewById(R.id.editText7);
     Float[] strings = new Float[allTexts.size()];
     Float zbroj=(float) 0;
     for(int i=0; i &lt; allTexts.size(); i++){
         strings[i] = Float.valueOf(allTexts.get(i).getText().toString());////problem
  
  
     }
     for (int k=0;k&lt;strings.length;k++){
         zbroj =zbroj+ strings[k];}
  
     }
     zbrojka.setText(String.valueOf(zbroj)+"KN");
  </code></pre>
  
  <p>}</p>