basgen
asked on
questions
one more thing guys.....i managed to come out with this for transaction.java...no sure with the condition part....wld appreciate the knowledge in that...many thanks.
public class Transaction {
private String recordTrans ;
private String accountNumber1 ;
private String accountNumber2 ;
private double amt ;
private Calendar date ;
private String type ;
Calendar date;
private Object rec;
public Transaction(){
}
public addRecord(String type, double amt){
I AM STUCK HERE!!!!
recordTrans = date.getDate() + " " + transType + " " + amount;
date.tock(7);
return recrecordTrans;
}
}
public class Transaction {
private String recordTrans ;
private String accountNumber1 ;
private String accountNumber2 ;
private double amt ;
private Calendar date ;
private String type ;
Calendar date;
private Object rec;
public Transaction(){
}
public addRecord(String type, double amt){
I AM STUCK HERE!!!!
recordTrans = date.getDate() + " " + transType + " " + amount;
date.tock(7);
return recrecordTrans;
}
}
What do you want the class to do
Don't you want this?
recordTrans = date.getDate() + " " + type + " " + amt;
date.tock(7);
return recordTrans;
I'm with Kanti though, what are you trying to accomplish?
ASKER
ok cehj i didnt accept any answers...from wat i can see my buddies must have used this account to accept..sorry abt that. anyways...im trying to record a credit card transaction with thisfile
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OK. Let's get a bit focused and please don't let other people use your account basgen
>>public addRecord
That of course should have a return type. As i said previously, it looks like it's in the wrong place. What do you intend it to do?
>>public addRecord
That of course should have a return type. As i said previously, it looks like it's in the wrong place. What do you intend it to do?
?