New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
why is it not running?
import java.util.Scanner;
public class Myclass{
public static void main(String [] args){
Scanner in = new Scanner(System.in);
String a;
int b;
System.out.println("enter a word");
a = in.nextLine();
System.out.println("enter repetition")
b = in.nextInt();
for ( int = 0; x < b; x = x++)
System.out.println(a);
}
}
0 Votes
8 AnswersHot today
Help with homework
0 Votes
please help me emotionally
1 Votes
While loop problem maybe?
2 Votes
What next?
0 Votes