Search:

Type: Posts; User: Laxman2809

Search: Search took 0.07 seconds.

  1. Social Planner-Arrays and Super and Sub Classes

    So I have been tasked with creating a program that is essentially a planner for a person. It has to have the abilities to add events of 3 types(Party, Dance Class,Club Meeting). It then has to be...
  2. Replies
    4
    Views
    1,338

    Re: In Memory CD Database

    Also another issue seems to be that it after I enter 1 CD it only stores that information
  3. Replies
    4
    Views
    1,338

    Re: In Memory CD Database

    Ok thank you for that explanations, but now I have an issue with my code. My remove function doesn't see to be working. Now I think it has to do with the fact it is not setting that CDs information...
  4. Replies
    4
    Views
    1,338

    Re: In Memory CD Database

    Updated Code

    import java.util.Scanner;
    public class TestMusicDB {

    /**
    * @author Alexander Chamerlaion
    * @Version 1.0
    * @Date 10/5/11
    * This program creates a DB and stores values...
  5. Replies
    4
    Views
    1,338

    In Memory CD Database

    Alright so like the title says I am creating an In memory CD database that has to have the abilities to add find remove and display information about the cds. So far I have been able to accomplish...
  6. Re: Sending an email of the results from 1 Class to another

    But I was under the impression that I was declaring it in when I

    SMTPsender s = new SMTPsender(mailSender, mailSender,
    "WARNING! Your account is overdrawn.");

    or at least calling the...
  7. Re: Sending an email of the results from 1 Class to another

    Have it at the bottom of the driver program

    //Sending Email of Results

    SMTPsender s = new SMTPsender(mailSender, mailSender,
    "WARNING! Your account is overdrawn.");
    s.send();
  8. Re: Sending an email of the results from 1 Class to another

    Missing my die class but don't think its needed but here is the Error i am given from Eclipse


    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    mailSender cannot...
  9. Sending an email of the results from 1 Class to another

    Alright so I have written this dice wagering game where we use classes that store a bank account balacne class for die rolling and a class that send an email of the results/when they are out of...
  10. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    this seems to get rid of the issue of subtracting it twice, but my thought is that its not/ I am not coding it right to enact the method to b1.withdraw(wager) and b2.withdraw(wager) which i thought...
  11. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    Yes but now it is subtracting double the wager i think it is cause I am taking the wager twice but I don't know how to fix it
  12. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    reducing the balance by the wager and then returning the balance with the wager subtracted

    public int withdraw(int wager) {
    return balance=balance - (wager);
    }
  13. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    Correct I was under the impression that using

    b1.withdraw(wager1,wager1);
    would be for account 1 and subtracting player 1 wager that he entered


    b2.withdraw(wager2,wager2);

    would be for...
  14. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    I would like the method withdraw to subtract the wager from the balance and return me that int. it has to do this for 2 different bank accounts keeping the 2 balances separate



    //Wager...
  15. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    Alright so how would you call withdraw after the balance has been subtracted by the wager?
  16. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    I hate to ask it but could you explain what you mean my recursive.
  17. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    Exception in thread "main" java.lang.StackOverflowError
    at Bankaccount.withdraw(Bankaccount.java:25)

    for when I run
  18. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    Alright so solved some of those issues now on how to subtract the wager from the balance entered by the user it is saing method withdraw is not applicable for the argument int, int



    import...
  19. Replies
    24
    Views
    1,870

    Re: Dice Wagering Game new to Multiple Classes

    Alright so no error really just having issues making it do as i would like
    Now I have it asking for 1st name but I can't get it to ask for the 2nd name


    import java.util.Scanner;


    public...
  20. Replies
    24
    Views
    1,870

    Dice Wagering Game new to Multiple Classes

    Alright so I have a hw on multiple classes and I am having trouble with getting input from 1 to another. Now I don't know what the best way to do this so I am having the class ask for the input(error...
  21. Replies
    11
    Views
    7,390

    Re: JAVA HIGH LOW NUMBER GUESSING GAME

    Ok so now I have working code except when the user inputs a negative number I can't make the program quit.



    import java.math.*;
    import java.util.Random;
    import java.util.Scanner;
    import...
  22. Replies
    11
    Views
    7,390

    Re: JAVA HIGH LOW NUMBER GUESSING GAME

    I hate to ask for it but could i see an example of some pseudo code? I'm not fully grasping what your saying



    import java.math.*;
    import java.util.Random;
    import java.util.Scanner;
    import...
  23. Replies
    11
    Views
    7,390

    Re: JAVA HIGH LOW NUMBER GUESSING GAME

    Alright I moved that line in the do while statement and I still have the same error is there a chance that I have other issues with my code
  24. Replies
    11
    Views
    7,390

    Re: JAVA HIGH LOW NUMBER GUESSING GAME

    my fault its says incompatible operand types Sting and int. now i think i discovered the reason why and its because I'm trying to compare a string to an int value and you can't do that. but now i...
  25. Replies
    11
    Views
    7,390

    JAVA HIGH LOW NUMBER GUESSING GAME

    Alright guys so I am writing this program so that the computer creates a number and the user has to guess it by just high and low as a hint. It also has to keep track of the number of tries and...
Results 1 to 25 of 25