- CardHandler
- Saturday, December 15th, 2007 at 5:16:51am MST
- /************ CardHandler.java ************/
- import java.io.*;
- import java.util.Formatter;
- public class CardHandler {
- protected double Value;
- protected String Type;
- protected String LastAction;
- File cardFile;
- if (!cardFile.exists()) { return false; }
- try {
- //String line = getClass().getName(); // String that holds current file line
- for (int i=0; i<Line.length; i++) {
- }
- bufRead.close();
- }
- return true;
- }
- public boolean isInserted() {
- return cardFile.exists();
- }
- if (dataname.equals("Type")) {return Type;}
- if (dataname.equals("LastAction")) {return LastAction;}
- return null;
- }
- public double getValue() {
- return Value;
- }
- if (dataname.equals("Type")) {this.Type = newValue;}
- if (dataname.equals("LastAction")) {this.LastAction = newValue;}
- }
- public void adjustValue(double difference) {
- Value += difference;
- }
- public boolean close() {
- try
- {
- ps.println(Type);
- ps.println(Value);
- ps.println(LastAction);
- ps.close();
- }
- return true;
- }
- }
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.