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...
Type: Posts; User: Laxman2809
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...
Also another issue seems to be that it after I enter 1 CD it only stores that information
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...
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...
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...
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...
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();
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...
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...
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...
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
reducing the balance by the wager and then returning the balance with the wager subtracted
public int withdraw(int wager) {
return balance=balance - (wager);
}
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...
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...
Alright so how would you call withdraw after the balance has been subtracted by the wager?
I hate to ask it but could you explain what you mean my recursive.
Exception in thread "main" java.lang.StackOverflowError
at Bankaccount.withdraw(Bankaccount.java:25)
for when I run
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...
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...
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...
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...
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...
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
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...
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...