Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

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;
     }
}
0
basgen
Asked:
basgen
1 Solution
 
KantiCommented:
What do you want the class to do
0
 
Onyx23Commented:
       

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

Please continue over there basgen
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
basgenAuthor Commented:
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
0
 
Mayank SAssociate Director - Product EngineeringCommented:
That question has been closed - do we continue the discussion here or not?
0
 
CEHJCommented:
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?
0
 
Mayank SAssociate Director - Product EngineeringCommented:
?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now