import javax.swing.*;
import java.awt.*;
public class CplusPlus extends java.applet.Applet {
String statement = "a single set of commands";
String comment = "a line or portion of a...
Type: Posts; User: ericgomez
import javax.swing.*;
import java.awt.*;
public class CplusPlus extends java.applet.Applet {
String statement = "a single set of commands";
String comment = "a line or portion of a...
import javax.swing.*;
import java.awt.*;
public class learningByChapter extends java.applet.Applet {
String statement = "a single set of commands";
String comment = "a line or portion...
The loops repeat more than 3 times
I am having loop issues:
import javax.swing.*;
import java.awt.Container;
import java.math.*;
public class arithmetic extends JApplet {
case 1:
for (int x = 1; x < 4; x++) {
case 2:
for (int x = 1; x < 4; x++) {
case 3:
for (int x = 1; x < 4; x++) {
That line rounds a random number to the nearest whole number so I do not get a random number that is in a decimal form.
My question is what is wrong with the loops, as they are exceeding 3.
This code does only dividing numbers with decimals.
double number4 = Math.floor(Math.random() * 13);
JOptionPane.showMessageDialog(null,number4,null,JOptionPane.
INFORMATION_MESSAGE);...
How do I get numbers to divide themselves with no remainders?
import javax.swing.*;
import java.awt.Container;
import java.math.*;
public class arithmetic extends JApplet {
public void init() {
String input = JOptionPane.showInputDialog
Now I am having problems with the actionListener. How do I get it to work so that the volume takes all variables?
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import...
thank you, it worked.
Now I am having problems with the actionListener. How do I get it to work so that the volume takes all variables?
import javax.swing.*;
import java.awt.*;
import...
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.text.DecimalFormat;
import javax.swing.event.*;
public class japanese extends JApplet {
public void...
import javax.swing.*;
import java.awt.Container;
import java.math.*;
public class arithmetic extends JApplet {
public void init() {
String input = JOptionPane.showInputDialog
("Select an...
import javax.swing.*;
import java.awt.Container;
import java.math.*;
public class arithmetic extends JApplet {
public void init() {
String input = JOptionPane.showInputDialog...