Code:import javax.swing.*;
public class Spam
{
public static void main(String[] args)
{
String s;
s = JOptionPane.showInputDialog(" Please insert Spam");
String j;
j = JOptionPane.showInputDialog(" Please insert number of spam");
int i = 1;
do
{
System.out.println(s);
i++;
}
[COLOR="#FF0000"][COLOR="#B22222"]while ((i = 10) + j);[/COLOR][/COLOR]
JOptionPane.showMessageDialog(null, "you console was spammed " + s);
System.exit (0);
}
}
I am attempting to make it so it loops the input the user made at the number of times the user said. Sorry, im a beginner to java coding.

