Wednesday, January 30, 2013

[android-developers] Re: can you debug?... here error: syntax error : insert "(" to complete expression

lselwd wrote:

private List<String> fileNameList; // flag file names
int[] sizeWordCountries = new int[9];  // 10   
      
      for (int i = 0; i < 9; i++)  
      { 
      sizeWordCountries[i]=(fileNameList.get(i)).length();  // here error: syntax error : insert "(" to complete expression
      }

This code fragment is insufficient to debug your problem. For example, you do not show where you initialize 
'fileNameList'. (Terrible name for a variable, btw.) You also do not show where you fill 'fileNameList', nor do you 
show the *actual* error message.

Study this: http://sscce.org/

-- 
Lew
 

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment