New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
In the short code below, I declared an array of five elements. But I'm getting confused on how to use it in a while loop. My main question is , if the user inputs a userchoice1 value that is less than 1, I want the code to keep looping until the user inputs a number that is not less than 1. But I don't know if the 7th line (userchoice1 [x]++) shows the right way to loop it.
1 Vote
2 Answersgetting error when try to use this code
System.out.printf("my name is %s","Roy");
it's showing like: exception in thread"main" Java.lang.Error: unresolved compilation problem:
the method printf(String,Object[ ]) in the type printstream is not applicable for the arguments (String,int)at tutorial 19.App.main(App.java:11)
0 Votes
3 AnswersGetting more practice?
0 Votes
2 AnswersGetting the date
0 Votes
6 AnswersGetting past this popup
-3 Votes
1 AnswerHot today
Comparing code coach solutions
3 Votes
Automatation python
1 Votes
General python
1 Votes
view challenge analytics
2 Votes
Problem with application
0 Votes
Road Runner!!! ✌🏻🙌🏻
1 Votes