Please can any one help with a code for credit and thrift society, where group of people will come together to save money, members could be given loan, and at the end of the month the whole savings should belong to someone.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Please can any one help with a code for credit and thrift society, where group of people will come together to save money, members could be given loan, and at the end of the month the whole savings should belong to someone.
You need to elaborate a little bit more than this I'm afraid. What exactly is it you need, is this a full blown project or just a simple class?
If this is a project are you willing to pay someone for having this created?
// Json
Its a class assignment, and it has a good mark attached to it, please help...
What is it you need help on (what have you done)?
this is how far I have gone with this project but I dont know how to read into a text field from an "xls" fileimport java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class thrift extends JFrame implements ActionListener{ private JLabel label1, label2, label3; private JButton button1, button2, button3,button4; private JTextArea result; public thrift() { super("thrift"); Container container = getContentPane(); container.setBounds(0,0,300,400); button1 = new JButton("Administrator"); button1.setLocation(0,20); button1.addActionListener(this); //button1. button2 = new JButton("Check Status"); button2.setLocation(0,40); button2.addActionListener(this); button3 = new JButton("Transactions"); button1.setBounds(20,60,120,30); button2.setBounds(320,150,120,30); button3.setBounds(150,150,120,30); button3.addActionListener(this); button4 = new JButton("Loans"); button4.setBounds(20,150,80,30); button4.addActionListener(this); result = new JTextArea(); result.setAutoscrolls(true); result.setText("new"); result.setEditable(false); //result.getAlignmentY(); result.setBounds(20,200,440,200); container.add(result); container.add(button1); container.add(button2); container.add(button3); container.add(button4); label1 = new JLabel( "" ); label1.setToolTipText( "" ); container.add( label1 ); label2 = new JLabel( ""); label2.setToolTipText( "" ); container.add( label2 ); label3 = new JLabel(); label3.setText( "" ); label3.setToolTipText( "" ); container.add( label3 ); setSize( 500, 500 ); setVisible( true ); } // execute application public static void main( String args[] )throws IOException { thrift application = new thrift(); application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE ); File file = new File("in.xls"); BufferedReader in = new BufferedReader(new FileReader(file)); File outfile = new File("out.xls"); BufferedWriter out = new BufferedWriter(new FileWriter(outfile)); } public void actionPerformed(ActionEvent e) { if (e.getSource() == button1)//administrator { result.setText("Administrator\n this is meAnt \nto show administrative \noptions"); } if (e.getSource() == button2)//check status { result.setText("Check Status"); } if (e.getSource() == button3)//transactions { result.setText("transactions"); } if (e.getSource() == button4)//loans { result.setText("loans"); } } }
mmm... xls files are binary files that make it difficult to interpret what's inside of them without some work
If it must be a xls file, I'd recommend finding a good API to perform the witchcraft reading for you (I here JExcel API is a good one).
If it is indeed just a regular text file, use the Scanner class.
did you yourself put the data into the xls, or were you specifically told to put it in an xls file
It is expected that I read my inputs from a database, but I dont know how to go about that, that is why I opted for an excel file
depending on the scope of the course you should likely not be expected to read from something such as an xls file.
try saving xls as a .CSV file.
Makes sheet turn into something like.
Last edited by rsala004; November 10th, 2009 at 06:04 PM.
random link, stay away... -.-