Link to home
Start Free TrialLog in
Avatar of basgen
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;
     }
}
Avatar of Kanti
Kanti

What do you want the class to do
Avatar of Curtis Shull
       

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?
Duplicate of http:Q_21862367.html

Please continue over there basgen
Avatar of basgen

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
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?