Search:

Type: Posts; User: jbarke12

Search: Search took 0.23 seconds.

  1. Replies
    2
    Views
    103

    Re: Enumerations help

    public class Demo {

    public enum Month {

    JANUARY(1), FEBRUARY(2), MARCH(3), APRIL(4), MAY(5), JUNE(6), JULY(7), AUGUST(8), SEPTEMBER(9), OCTOBER(10), NOVEMBER(11), DECEMBER(12);
    ...
  2. Re: Which Java programming book should a beginner choose ?

    Making android apps are fun, but do you know basics of programming or is this your first experience with programming?
  3. Replies
    6
    Views
    137

    Re: Need help with looping

    item is a String. You are comparing an int to a String in item!=999. Your issue would be because of this fact.

    --- Update ---

    The other issue you are having is outFile doesn't exist. My...
  4. Replies
    6
    Views
    218

    Re: Random Number Arrays

    I bet if you defined two different arrays to pass into your scenes you wouldn't have this problem
  5. Replies
    4
    Views
    222

    Re: Several questions about my code

    class Account{
    double balance;
    String name;
    Bank bank;

    Account(){ //default constructor
    this("", 0.0, null);
    // bank = new Bank(); //Is this necessary?
    }
    //fully specified...
  6. Thread: What gives?

    by jbarke12
    Replies
    5
    Views
    192

    Re: What gives?

    It works with package stringvars; if that is the true name of your package. My only thought is the name of your package was incorrect otherwise it should have run just fine
  7. Replies
    4
    Views
    181

    Re: Need some help.

    I would. Basically start with your if statement with the square root. Within that block define what happens if a is above 0 and if a is 0 then do the same thing in the else part of your block for...
  8. Replies
    4
    Views
    222

    Re: Several questions about my code

    I answered the questions in the code


    import java.util.Scanner;
    import java.util.ArrayList;

    class Bank{
    double balance;
    //Account account;
    ArrayList<Account>account = new...
  9. Replies
    4
    Views
    181

    Re: Need some help.

    The reason it is printing twice is because you do your check on the square and then on a instead of doing them together.
Results 1 to 9 of 9