0

Why am I getting an error saying semi colon is expected?

int[] level = {0,1,2,3,4,5,6,7,8,9,10}; int[] charHpArray = {1, 5,10,15,20,25,30,35,40,45,50}; (Error here) for (int i : level) { int j = charHpArray[i]; System.out.println("wowowow"); }

10th Oct 2018, 2:23 AM
Dylan Cunha
Dylan Cunha - avatar
1 ответ
0
look at my code , it runs correctly https://code.sololearn.com/cYU4Sls0F96c/?ref=app
10th Oct 2018, 2:52 AM
AmirFrb
AmirFrb - avatar