Search:

Type: Posts; User: javapenguin

Search: Search took 0.11 seconds.

  1. Thread: Math Drill

    by javapenguin
    Replies
    11
    Views
    3,422

    Re: Math Drill

    The try block looks for error. Put the thing that might cause the error in there.

    The catch blocks will attempt to point out the error and display the error message.

    Catching and Handling...
  2. Thread: Math Drill

    by javapenguin
    Replies
    11
    Views
    3,422

    Re: Math Drill

    int x = 0;
    int y = 0;

    if (choice = divide)
    {
    // input int 1 like normal
    boolean secondValueIsZero = true;

    while (secondValueIsZero==true)
    {
  3. Thread: Math Drill

    by javapenguin
    Replies
    11
    Views
    3,422

    Re: Math Drill

    while (! entercode = ("1")&&
    entercodeString!= ("2") &&
    entercodeString != ("3") &&
    entercodeString != ("4") &&
    entercodeString != ("5"));




    Also, I think with Strings and other Objects,...
  4. Thread: Math Drill

    by javapenguin
    Replies
    11
    Views
    3,422

    Re: Math Drill

    Please use:

    [highlight=java] code [/highlgiht]
    It makes code easier to read.

    import javax.swing.JOptionPane;

    public class MathDrillLoop {//start program
    public static void main (String[]...
Results 1 to 4 of 4