|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Plz help me out for this pro as it took me 2 weeks to do this task but i failed doing
String, Class, Inheritance, Collections, File Handling, Exception Handling
a). In merging the two companies A and B, a single file is to be created which contains the names,addresses and telephone numbers of all the clients who have been previously served by either one or both of the two companies. The text files for the two companies are named Acompany and Bcompany.In both text files, the client details appear in alphabetical order. Write a Java programs which reads and merges the two test fields and write the result into a new text field named NewCompany. b) Extends the program developed in part a) to provide the following additional facilities for a user: · Add new client record to the file · Delete an existing client record from the file · Update the details of an existing client Given a post-code, list the name of all the client with the same post-code. This list should appear in a scrollable text area |
|
#2
|
|||
|
|||
|
Java and JavaScript are two very different languages. You seem to want Java.
Why did you post this here and in the Java Forum? |
|
#3
|
||||
|
||||
|
I don't volunteer my time to write programs for people... we're here to help; we're not here to do your work.
Give it a try and ask specific questions when you're stuck...
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#4
|
|||
|
|||
|
reply
thank you for the reply
i really appriciate for ur reply n i have tried this task n it took me 2 weeks but still i m not getting it so thats y one of my friend requested to post ma qns here so i did i hope u help me out i need codes to read a file , write a file to read a variable plz help me out plz i m stuck in this plz |
|
#5
|
||||
|
||||
|
need code
Since you have been working on this for 2 weeks you should have some code (if not several versions of it). Please post the part that you are having the problem with if tyou want help.
If you want someone to write an app for you, there are lots of code writers that could use some cash. What are your time constraints if any, and how much are willing to pay? |
|
#6
|
|||
|
|||
|
here s what i did (code)
the following s the code n in that i have made the structure but i dnt know how 2 read a variable n how to read a file, how to save a file plz help me out
import java.awt.*; import java.awt.event.*; public class company extends Frame implements ActionListener,TextListener { public Frame f=new Frame("Companies unite"); public Button nx=new Button("Next"); public Button pr=new Button("Previous"); public Label it=new Label("Item:"); public TextField im=new TextField(); public Label nm=new Label("Name:"); public TextField na=new TextField(); public Label ad=new Label("Address:"); public TextField ar=new TextField(); public TextField te=new TextField(); public Label tl=new Label("Telephone:"); public Label co=new Label("Company:"); public TextField cm=new TextField(); public Button ex=new Button("Exit"); public Label b1=new Label(""); public Label b2=new Label(""); public Label b3=new Label(""); public Label b4=new Label(""); public Label b5=new Label(""); public TextArea sm=new TextArea(20,20); public void bg() { f.add(nx); f.add(pr); f.add(ex); f.add(it); f.add(im); f.add(sm); f.add(nm); f.add(na); f.add(b2); f.add(ad); f.add(ar); f.add(b3); f.add(tl); f.add(te); f.add(b4); f.add(co); f.add(cm); f.add(b5); f.setLayout(new GridLayout(6,3)); f.setVisible(true); ex.addActionListener(this); nx.addActionListener(this); pr.addActionListener(this); im.setText("AKASH"); } public static void main(String args[]) { company q=new company(); q.bg(); } public void actionPerformed(ActionEvent e) { if(e.getSource()==ex) { System.exit(0); } } public void textValueChanged(TextEvent t) { na.setText(im.getText()); } } |
|
#7
|
|||
|
|||
|
plz help me out plz
hello
how u doing hope fine any 1 can help me 2 write a pseudocode or dram a flow chart or a class diagram plz help me out plz String, Class, Inheritance, Collections, File Handling, Exception Handling a). In merging the two companies A and B, a single file is to be created which contains the names,addresses and telephone numbers of all the clients who have been previously served by either one or both of the two companies. The text files for the two companies are named Acompany and Bcompany.In both text files, the client details appear in alphabetical order. Write a Java programs which reads and merges the two test fields and write the result into a new text field named NewCompany. b) Extends the program developed in part a) to provide the following additional facilities for a user: · Add new client record to the file · Delete an existing client record from the file · Update the details of an existing client Given a post-code, list the name of all the client with the same post-code. This list should appear in a scrollable text area |
|
#8
|
||||
|
||||
|
IO classes
You need to use IO classes. It's been a while since I did anything with these, so you should check your JDK's docs, but you should probably use the FileReader class (or maybe the abstract Reader class). Once you get the input files' contents you can parse the info into arrays and work with the data. Then use the FileWriter class (or Writer) to make the new file.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Plz help me out for this pro as it took me 2 weeks to do this task but i failed doing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|