Search:

Type: Posts; User: ericgomez

Search: Search took 0.08 seconds.

  1. Thread: case 3

    by ericgomez
    Replies
    2
    Views
    920

    case 3

    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...
  2. Replies
    1
    Views
    806

    learningByChapter

    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...
  3. Thread: loop issues

    by ericgomez
    Replies
    3
    Views
    978

    Re: loop issues

    The loops repeat more than 3 times
  4. Thread: loop issues

    by ericgomez
    Replies
    3
    Views
    978

    loop issues

    I am having loop issues:


    import javax.swing.*;

    import java.awt.Container;
    import java.math.*;

    public class arithmetic extends JApplet {
  5. Replies
    5
    Views
    1,154

    Re: my loops are not working like they should

    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++) {
  6. Thread: division

    by ericgomez
    Replies
    7
    Views
    1,289

    Re: division

    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.
  7. Replies
    5
    Views
    1,154

    Re: my loops are not working like they should

    My question is what is wrong with the loops, as they are exceeding 3.
  8. Thread: division

    by ericgomez
    Replies
    7
    Views
    1,289

    Re: division

    This code does only dividing numbers with decimals.

    double number4 = Math.floor(Math.random() * 13);
    JOptionPane.showMessageDialog(null,number4,null,JOptionPane.
    INFORMATION_MESSAGE);...
  9. Thread: division

    by ericgomez
    Replies
    7
    Views
    1,289

    division

    How do I get numbers to divide themselves with no remainders?
  10. Replies
    5
    Views
    1,154

    my loops are not working like they should

    import javax.swing.*;

    import java.awt.Container;
    import java.math.*;

    public class arithmetic extends JApplet {

    public void init() {

    String input = JOptionPane.showInputDialog
  11. Replies
    1
    Views
    825

    ActionListener

    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...
  12. Replies
    4
    Views
    998

    Re: the if statement does not work

    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...
  13. Replies
    4
    Views
    998

    the if statement does not work

    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...
  14. Replies
    3
    Views
    1,276

    Re: how to loop correctly this program

    import javax.swing.*;
    import java.awt.Container;
    import java.math.*;

    public class arithmetic extends JApplet {

    public void init() {

    String input = JOptionPane.showInputDialog
    ("Select an...
  15. Replies
    3
    Views
    1,276

    how to loop correctly this program

    import javax.swing.*;
    import java.awt.Container;
    import java.math.*;

    public class arithmetic extends JApplet {

    public void init() {

    String input = JOptionPane.showInputDialog...
Results 1 to 15 of 15