I am trying to fill an array like this, is it possible?

I’m getting an endless amount of error messages like these.

at java.util.regex.Pattern$CharProperty.match(Pattern.java:3345)
at java.util.regex.Pattern$Branch.match(Pattern.java:4114)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)

The reason I want to do this is that i need a set of numbers to be available in my menu for use by my rotary encoder.
Ideally they should be ints though. This seems like a very hard way to do it to me, but the menu is event triggered, so running a counter type code from the loop did not work.

             MenuItem mi0 = MenuItem("0");
             MenuItem mi50 = MenuItem("50");
             MenuItem mi100 = MenuItem("100");
//___________Menu number array__________________________           
           int menu50[140]
           int j = 0; 
           for (int i = 0; i < 7000; i=+50){
               int j = 0; 
               j =+50
             menu50[j] = "'MenuItem miNo',i,'=', 'MenuItem',','(','"',i'"')'"; 
 j =+50



You have a second line with "j = 0;". This means that the outer declaration of j is not used in the loop.