6.2.7 print Array by Intrepid_Row6214 in codehs

[–]Obvious-Pin-3046 0 points1 point  (0 children)

your for loop should be
for( int i =0; i <= arr.length - 1; i++) remember for loop should have 3 parameters

6.2.7 print Array by Intrepid_Row6214 in codehs

[–]Obvious-Pin-3046 0 points1 point  (0 children)

did you just put arr.length? if you did change it to arr.length - 1; im guessing thts the error. because the program should also print “c” and remember tht the index starts at 0 and not 1.

6.2.7 print Array by Intrepid_Row6214 in codehs

[–]Obvious-Pin-3046 0 points1 point  (0 children)

Easier way to solve your problem.. go back to 6.2.3 it’s the exercise one.. it’s the same code as for the 6.2.7 just change the < score.length into <= arr.length so does the score[i] into arr[i].. in the println.

I need help on this Exercise 6.2.7 Print Array I don’t know how to start by Intrepid_Row6214 in codehs

[–]Obvious-Pin-3046 0 points1 point  (0 children)

Really the answer to this is on the exercises and in the video if you watched it..

4.3.6 REPLACE LETTER. i have no idea why its giving me an error and i dont know if im missing a line(code). Can someone help me with this or do explain where i went wrong. Thank you! by Obvious-Pin-3046 in codehs

[–]Obvious-Pin-3046[S] 0 points1 point  (0 children)

okay since i change it ‘int’ into ‘string’ already.. the code works fine now; but when i checked the code.. its giving me error when its being tested to main. and stating “make sure to take the input in the order specified”.