Help me for java programming about ATM machine

can anyone make a program for me or fix my program? cause i got some of the errors that i can not fix....
my school project duedate at 14 july2001
please email me at [email protected]
Thanks

but show me the code to solve your problem.

Similar Messages

  • Help need on System setup for java programming

    HELP BADLY NEEDED!
    I recently installed java (jdk version8 152mb) on my HP630 win7 because i want to learn java. But when practising, after using notepad to code samples like "Hello Word" and saving it with .java format, it still cannot run on my pc.
    Pls i think i need a complete and comprehensible guide on how to install and prepare my win7 laptop for java programming.
    Thanks in anticipation

    Hello,
       one suggestion is to ensure your system's environment PATH has the Java installation path included, so that it knows where to look to run Java.
     (See attached pix).
    1st) Find out where Java was installed to on your system: For example, on my Win7 PC, Java was installed to 'C:\Program Files (x86)\Java' directory.
          However, my path to the actual binaries is 'C:\Program Files (x86)\Java\jre7\bin'; this is the value I added to my system PATH.
    2nd) Check what your System's PATH has: You can do this by looking at the Environment Variables under System Properties:
       1) Search for Control Panel, then go to System & Security, then to System, then to 'Advanced System settings'.
       2) Click on 'Environment Variables...'
       3) Under the 'System variables' pane, use the scroll bar to find 'Path', and click on 'Edit...'.
       4) Here is where you add your Java path (as noted above): Note that I appended my java path to the existing Path text, taking care to separate the previous path with a semi-colon (';').
         For example, this was my existing 'Path': "C:\Program Files\CollabNet\"...and now it looks like this 'C:\Program Files\CollabNet\;C:\Program Files (x86)\Java\jre7\bin'.
       5) Click OK, OK, OK out of all those dialogs.
       Now..restart your JVM or attempt to run your Java program!.
     Good luck.
    Regards,
    HardCopy (I am employed by HP) [If this was helpful, please mark this 'Solved' or 'Accept as Solution' so others can find this too]
    How to Give Kudos | How to mark as Solved
    Attachments:
    SystemVariables.PNG ‏60 KB

  • How many softwares are there to create a setup file for java programs

    Hi, i am new to java
    I want to know how many softwares are there to create a setup file for java programs.
    I know one software i.e java launcher to create a setup file.
    I want to know about any other softwares are available to create a setup file for java programs.
    I created a setup file for swings program in JCreator.
    And don't think that i am wastiing ur time with this question .
    Help me regarding this topic.
    Thanks in Advance

    superstar wrote:
    I want to know how many softwares are there to create a setup file for java programs.13, no wait, 42.
    I know one software i.e java launcher to create a setup file.You should clearly identify what you think you already know.
    I want to know about any other softwares are available to create a setup file for java programs.
    I created a setup file for swings program in JCreator.Is this the one you talked before, or is this different?
    And don't think that i am wasting ur time with this question .Why should I not think that?

  • How to create reports for java programs?

    Hi,
    I have planned to do a project using java,that will help to create reports for java programs. To create reports for java programs i used two options.
    1)Crystal reports
    2)Write the code to produce reports for each java programs
    The second one little cumbersome.SO i planned to develop a software that is compatible for creating java reports.
    I would like to know how i will do the project?Can you help me to made it a successful project.Hope you can help me.
    Expecting your reply
    PreethiRenjith

    Uggg... Crystal reports...
    I would personally write a generic report generator, It would probably be easier than fighting w/
    crystal reports (CR is popular, but painful :) )
    Anyhow, I've written report generators for many different applications. It is one of the simplest projects you
    can take on, and the results make you feel special --
    If your need nicely formated, portable, printable reports, you could have your report generator make PDF files (the format is open, and VERY simple, plus people like pdf files) you can get the pdf spec from adobe or from wotsit.org (the famous wotsit file format archive).
    enjoy!

  • Syllabus/Topics for Sun Certified Instructor for Java Programming Language

    Hi,
    What is the Syllabus/Topics for Sun Certified Instructor for Java Programming Language ?
    At the following link
    http://www.sun.com/training/catalog/instructor/java.html
    detailed syllabus is not there.
    I am unable to find the details in Sun site even after search through google.
    Please help in this regard.
    Thank you for your kind consideration.

    Sir,
    thank you for your response.
    technic  wrote:
    I'm not sure what you mean by Syllabus/Topics?For SCJA/SCJP/SCWCD/SCBCD/SCDJWS/SCMAD/SCEA
    I am able to find the detailed syllabus for the exam by clicking on the respective certification link at the following link
    http://www.sun.com/training/certification/java/index.xml
    for example: for SCJP,
    http://www.sun.com/training/certification/java/scjp.xml
    http://www.sun.com/training/catalog/courses/CX-310-065.xml
    these links are providing exam objectives, number of questions, exam duration , fee details etc.
    But for
    Sun Certified Instructor for Java Programming Language Course (SL-275)
    I am unable to find such details exam objectives (syllabus), no. of questions, exam duration, etc.,
    even, the following link
    http://www.sun.com/training/certification/objectives/index.xml
    is providing details of all other certifications except
    Sun Certified Instructor for Java Programming Language Course (SL-275)
    thank you for your kind consideration.

  • Need Help with a JAVA programming assignment

    How do I write a JAVA program that could be used as the start of an MS-DOS/Windows simulation of the IEEE 802.3 protocol? I am to only code the parts necessary to build the 802.3 frame. For the initial implementation, the Checksum function need not be a CRC function, and the Destination and Source addresses wil be in input, stored, and output, and in dotted-decimal format.
    I need:
    1. A record to describe the frame, with each field being a (byte-) string of the required size, except that the Data field is of variable size. Although the "Source address" and "Destination address" would be 6 bytes for a real implementation, for this first implementation you can either assume they'll be text strings in the usual "dotted decimal" form (e.g. "14.04.05.18.01.25" as a typical example--from Tanenbaum, p. 429), or 6 hex digits.
    2. Suitable constant declarations for values such as the standard "Preamble" and "Start of Frame" values.
    3. Suitable functions to Get the three variable values "Destination address", "Source address", and "Data" from the standard input device.
    4. A suitable function to display each of the fields of a given frame in a format such as:
    Preamble: ...
    StartofFrame: ...
    Destination: ...
    etc.
    5. A suitable function to generate a "Pad" field if necessary.
    6. A "dummy" Checksum-generating function which just takes the first 32 bits (4 bytes) of the Data (or Data+Pad, if necessary) rather than an actual CRC algorithm.
    I have no experience with Java. Can you help me or start me in the right direction?
    Thanks...........TK

    If you have no experience with Java, then it seems to me your first step should be to start learning the language. But it's difficult to advise how, since we don't know anything about your background. There are many good books available on Java, some are for beginners and some are for advanced programmers, so I'd suggest you go somewhere that has a large selection and start looking for something that doesn't seem completely over your head.

  • Help me making java program by Jcreator

    1. reversing an integer problem:
    a. write a program that allows a user to enter an integer up to 4 digits in length. The program should then reverse the order of the integer. The new number should have it's full decimal value (e.g. 432 is really 3*100 + 2*10+ 1*1)
    Enter number:123
    The reversal is 321
    Enter number:1005
    The reversal is 5001

    OK the specification said smth. about decimal extension, here it is:
    EXPLANATION:
    I am just a 'medium-advanced' Java programer and do this because I wan't to
    write more code and gather experience.
    And if I just write code but don't show it to any body it would get wasted...
    OK , ok now on I Stop helping Trolls and laymen.
    * @author melhiah
    public class ReverseAnInteger {
        private static final int MAX_INT_LEN = 6;
        public static void main(String[] args) throws Exception {
    /*        if(args.length < 1) {
                System.out.println("Usage: java ReverseAnInteger <integer-value>");
                System.exit(0);
            //String parsedIntegerString = args[0].substring(0, MAX_INT_LEN);
            String testIntegerString = "1234567890";
            String parsedIntegerString;
            if(testIntegerString.length() < MAX_INT_LEN) {
                parsedIntegerString = testIntegerString.substring(0,
                        testIntegerString.length());
            } else {
                parsedIntegerString = testIntegerString.substring(0, MAX_INT_LEN);
            String reversedIntegerString = showDecimalExtension(
                    reverseInt(parsedIntegerString));
            System.out.println(reversedIntegerString);
        private static String reverseInt(String intString) {
            char[] charString = intString.toCharArray();
            char[] resultString = new char[charString.length];
            int top = charString.length;
            for(int i = 0; i < charString.length; i++) {
                resultString[i] = charString[--top];
            return new String(resultString);
        private static String showDecimalExtension(String intString) {
            StringBuffer buffer = new StringBuffer();
            StringBuffer sb = new StringBuffer(); sb.append("1");
            for(int i = 1; i < intString.length(); i++) {
                sb.append("0");
            String decim = sb.toString();
            for(int i = 0; i < intString.length(); i++) {
                String str = intString.charAt(i) + "*" + decim + " + ";
                decim = decim.substring(0, decim.length() -1);
                buffer.append(str);
            String result = buffer.substring(0, buffer.length() -3); // to get rid of the trailing '+'
            return result;
    }

  • Help with a java program

    Hello. I'm posting in these forums because I really don't know where else to go. I have been trying for the past several days to figure out how to go about writing my program but to no avail. The project requires reading many lines each containing several different elements from a datafile named "DATA". A few examples of some lines from that file:
    Department number/Number of units received/Date on which the shipment arrived/Expiration date/Name of Object
    0 78 02/03/2001 02/12/2001 apples
    0 26 06/03/2001 06/10/2001 lemons
    3 62 03/06/2001 03/14/2001 hamburger
    What we have to do with this data is read all of it from the file, separate all the different elements, and based on input from the user, sort everything and print it out to the screen. If the user enters 03, the program will show everything that arrived and expired within the month of March, sorted by date.
    It is a pretty basic program, but my problem is that I have no idea how to go about reading in this data, putting it into a vector (probably the easiest method) or separating the different elements. I've gone to websites and looked through my textbooks but they didn't help much. If anyone has any resources that could help for writing such a program, or if anyone could offer help in writing the program, I would really appreciate it. I can also show what I've managed to write so far, or more details on how the program should work. Thanks in advance.
    Matt

    since im not a pro like some of the guys on here :),
    and believe me thiers people here, who could write your whole app in a hour.
    anyways my advice , would be to do a search on the forums for useing.bufferReader()
    i think you would need to read the file in with bufferreader then split up each line useing the stringTokenizer and then use some algorithm to compare
    the values and split them up into your vector arrays as needed.
    thier is also fileinputStream i think you can use that too.

  • Need Help with a Java program

    Hey
    I am doing a bachelor of Multimedia and for some reason I was forced to do Programming 1 which is just Java programing.I have been doing pretty well but we have the final exam coming up on Thursday and they told us to learn how to do this question but I have no idea how to do it, could someone please help me?
    Write a program that reads a file containing a list of students' student numbers and names, and then writes out another file in which the students have been formed into project groups.
    Sample input file:
    96439530 Naranek, Kosh
    08532109 Ivanova, Susan
    87642078 Sheridan, John
    44327889 Varner, Dell
    98100023 Kotto, Vir
    66345689 Sinclair, Jeffrey
    77421009 Garibaldi, Michael
    88775544 Winters, Talia
    54321098 Alexander, Lyta
    12345098 Mollari, Londo
    03465499 Takashima, Laurel
    88765432 Kyle, Benjamin
    08876500 Keffer, Warren
    07687878 Cole, Marcus
    For the project course: no group should have more than 5 members; and it is desireable that all groups have as close to 5 members as possible; and that students be allocated to groups alphabetically by family name, as in this sample output file:
    Group 1:
    Lyta Alexander (54321098)
    Susan Ivanova (08532109)
    Benjamin Kyle (88765432)
    John Sheridan (87642078)
    Dell Varner (44327889)
    Group 2:
    Marcus Cole (07687878)
    Warren Keffer (08876500)
    Londo Mollari (12345098)
    Jeffrey Sinclair (66345689)
    Talia Winters (88775544)
    Group 3:
    Michael Garibaldi (77421009)
    Vir Kotto (98100023)
    Kosh Naranek (96439530)
    Laurel Takashima (03465499)
    Students' names are first sorted (Alexander, Cole, Garibaldi, Ivanova, ...), then allocated to the tutes in rotation (Alexander to 1, Cole to 2, Garibaldi to 3, Ivanova to 1, ...).
    Note also that the student's details are written in a different format from the input. You may make the (usually wrong!) assumption that each student has a simple one-word family name and one other name.

    I'm sorry too annoy you again but I don't know how to implement what you told me. Here is my current code:
    import java.io.*;
    import java.util.*;
    class DetailSortTest {
         public void run() {
              try {
                   BufferedReader in = new
                   BufferedReader(new FileReader ("Data.txt"));
                   String line = in.readLine();
                   String[] names = new String [10];
                   int i = 0;
                   PrintWriter FileOut = new
                   PrintWriter(new FileWriter ("Data 2.txt"));
                   processFilesTest(in, FileOut);
                   in.close();
                   FileOut.close();
              } catch (FileNotFoundException f) {
                   System.out.println("Could Not Open The File");
              } catch (IOException i){
                   System.out.println(i.getMessage());
         public void processFilesTest (BufferedReader in, PrintWriter FileOut)
         throws IOException {
              String data[] = new String[100];
              List dList = new ArrayList();
              String NLine = in.readLine();
              FileOut.println(NLine);
         public static void main(String[] args) {
              DetailSortTest anObject = new
              DetailSortTest();
              anObject.run();
    How would I do it I tried:
    NLine.split(data[2]+""+data[1]+""+data[0]);
    But all that displays is null, null, null
    I know I am probably so stupid but I really appreciate the help

  • How to start a java program on another machine from one on my machine.

    During the next few weeks, I will be designing a grid computing system for a research project I am working on. The grid will be written entirely in java using java 2 SE. The question I have is, is there a way for the main program to remotely start the other programs on the other machines? I am very familiar with most networking concepts, but java is not my primary language so I was having trouble tracking down this feature if java even has it. Any suggestions you have would be greatly appreciated.
    thanks

    The administrators of each machine have agreed to install my java programs so that I may run my software. Worst case scenario I can have them manually start my program on each machine. The grid is to be the backbone of a very large simulation software to simulate around 18 million ISO shipping containers and the boats and ports they are on. The simulation will be used to test several security system designs. Because of the large scale of the problem, the solution has been decided to be a distributed system so that we can spread the load over a large number of systems. I understand the whole start a service on the other machines concept. I am looking for a way to start an already installed java program with as little human intervention as possible. The service idea will work. What I was looking for more specifically was a way to start the java virtual machine and run my code without having to leave a program running on their machine because like i said earlier they are personal machines. anyways if it is not do able I understand. Like I said, java is a second language and I don't yet know its limits or restraints.

  • Help me for JINI program crush.

    I have made a shared object(SO) file for JINI container program.
    The O/S(operating system) is solraris 5.9.
    The java container program calling SO invokes and crushes , with the following message, "Segmentation fault ".
    To investigate which is wrong between the Container program and the SO file,
    I made a C++ container program testing the SO file. The C++ program works well. I am an novice in java world. Please help me. I don't what happens in Java program.
    below is the result of dbx running of the java container program.
    t@1 (l@1) signal SEGV (no mapping at the fault address) in KTSCLASS::AddTrellis t@1 (l@1) signal SEGV (no mapping at the fault address) in KTSCLASS::AddTrellis at line 457 in file "ktssen.cpp"
    457 return trellisPtr->numPath ;
    dbx: read of 4 bytes at address ffb54640 failed -- no files or directories.
    rellis at line 457 in file "ktssen.cpp" <
    syntax error
    (dbx) 457 return trellisPtr->numPath ;
    457: not found
    rellis at line 457 in file "ktssen.cpp" <
    syntax error
    (dbx) 457 return trellisPtr->numPath ;
    457: not found
    (dbx)
    <

    Use two references fields to refer directly to table fields
    lc_wa_fcat-col_pos = 1.
    lc_wa_fcat-fieldname = 'COMP_CODE'.
    lc_wa_fcat-REF_TABLE = "give referenced table name here
    lc_wa_fcat-REF_FIELD = "give referenced table field name here
    "lc_wa_fcat-reptext = 'Buchungskreis'.   "no needed anymore as this text will be taken directly from field of table you provide above
    lc_wa_fcat-edit = 'X'.
    append lc_wa_fcat to lc_tb_fcat.
    lc_wa_fcat-OUTPUTLEN =  "this also must be a numeric value, not 'X'
    Regards
    Marcin

  • HELP:USING CLIENT SERVER PROGRAM ON DIFF.MACHINES CONNECTED TO INTERNET?

    BELOW IS THE JAVA CODE FOR CLIENT & SERVER PROGRAM (TCP) USING SOCKET.
    I AM TRYING TO RUN CLIENT & SERVER PROGRAM ON 2 DIFFERENT MACHINES CONNECTED 2 INTERNET
    (1 RUNS SERVER.java & OTHER CLIENT.java).
    IS IT POSSIBLE WITH THE CODE WRITTEN BELOW?
    // Server.Java
    import java.net.*;
    import java.io.*;
    class Server {
    public static void main(String[] args) {
    boolean finished = false;
    try{
    ServerSocket listener = new ServerSocket(4444);
    while(!finished)
    {Socket to_client = listener.accept();
    OutputStream out = to_client.getOutputStream();
    PrintWriter pout = new PrintWriter(out, true);
    pout.println("Hello! this is server talking to you.");
    to_client.close();
    listener.close();
    }// end of try
    catch(Exception ie) {
    System.out.println(ie);
    //Client.Java
    import java.net.*;
    import java.io.*;
    class Client
    public static void main(String[] args)
    Socket client;
    String host="serverpcname";//host is assigned name of the server
    try
    {InetAddress adressen = InetAddress.getByName(host);
      client = new Socket(adressen,4444);
      BufferedReader scanf = new BufferedReader(new
      InputStreamReader(client.getInputStream()));
       String someString = scanf.readLine();
       System.out.println("From Server: "+someString);
      client.close();
    catch(Exception e)
    System.out.println(e);
    WHEN THE CODE IS EXECUTED(CLIENT.java ON 1 PC & SERVER.java on other) IT GIVES FOLLOWING EXCEPTIONS:
    java.net.UnknownHostException: serverpcname: serverpcname
    PLZ. GUIDE ME.
    THANKS IN ADVANCE.

    For a server to be accessible on the inetrnet it needs to have an externally visible IP address. For example, an address which starts with 192.168.1 is for internal use only can only be used by other machines on the same internal network. The server's firewall needs to allow the port you are using access and the client has to be able to lookup up the IP address either using the hosts file or via a DNS service. None of these things have anything to do with Java programming, so if you have any more questions I sugegst you try googling them or ask a forum which relates to these issues.
    The connection time out is due to the fact that there is no way to contact an inetrnal address over the inetrnet. The host unknwown means you haven't configured your PC to lookup that address. i.e. the host is unknown.

  • Running java program in other machines

    i want to run my java program file in other machines , how i can do this without installing jdk1.3 on them?

    install the JRE instead.

  • Textpad for Java Programming

    I was wondering if any of you guys also use or know TEXTPAD ? If yes, what do you guys think of it ? Does textpad good or suitable for writing and compiling codes for Java ?
    Thanks !

    Does it good, or no ?Yes, it's excellent. As a tool to use when learning Java it cannot be beaten, and subsequently it is still just great. I would encourage you to purchase a full licence.
    When you compile bigger
    programs, does textpad still works ?Sure. Although once you are very familiar with the tools of Java development (particularly javac and java) then you will probably want to pick up an IDE to use instead of Textpad. That won't stop Textpad from being useful.
    What are the
    disadvantages of it ?It's not an IDE, just a text editor with some programmer oriented features. That's also one of its advantages.
    And what do you usually use to
    write Java code ?For short examples I still use Textpad. For viewing code in an ad hoc manner, I still use Textpad. For writing large applications I use Eclipse 3.1M7 where possible and (usually) WebSphere Application Developer where not.
    Dave.

  • Help with Simple JAVA program

    I'm a complete novice with Java. I want to write a Java program to run on Windows 2000 servers to write a list of certain files in a directory into a *.txt file. I hope to add complexity once I have this basic part working. Here's the code I have so far:
    //this Java application finds poll* files
    public class FindPollApp
    //Create File Object
    File dir = new File("d:/jda/windss/poll");
    //List directory
    if(dir.isDirectory())
    String[] dirContents = dir.list();
    for (int i=0; i < dirContents.length; i++)
    System.out.println(dirContents);
    //Iterate through files
    I get the following errors:
    C:\JAVA>javac FindPollApp.java
    FindPollApp.java:9: illegal start of type
    if(dir.isDirectory())
    ^
    FindPollApp.java:18: <identifier> expected
    ^
    2 errors
    Thanks.

    I'm a complete novice with Java. I want to write a
    Java program to run on Windows 2000 servers to write
    a list of certain files in a directory into a *.txt
    file. I hope to add complexity once I have this
    basic part working. Here's the code I have so far:
    //this Java application finds poll* files
    public class FindPollApp
    //Create File Object
    File dir = new File("d:/jda/windss/poll");
    //List directory
    if(dir.isDirectory())
    String[] dirContents = dir.list();
    for (int i=0; i < dirContents.length; i++)
    System.out.println(dirContents);
    //Iterate through files
    I get the following errors:
    C:\JAVA>javac FindPollApp.java
    FindPollApp.java:9: illegal start of type
    if(dir.isDirectory())
    ^
    FindPollApp.java:18: <identifier> expected
    ^
    2 errors
    Thanks.
    You need to create a method and insert your if statement in there

Maybe you are looking for

  • While uploading a CSV file i am getting error

    Hi All, I am trying to upload a huge CSV file and now it is giving below error: ORA-01653: unable to extend table ADT.SCG_RECIEVABLES2 by 128 in tablespace APEX_1711125608495793205. Any expert,please guide what type of error is it?and what i need to

  • Flex 3 : How  to capture   right click on DataGrid ??

    I am using Flex 3 . I have some data inside a DataGrid . Now when we the user right clicks on Datagrid Item , i want to show an Alert ??How  to capture  right click on DataGrid ?? Please suggest ,thanks

  • Where can I purchase a new MixRadio voucher in Tur...

    do you have any nokia centre in turkey where I can purchase radiomix voucher? Let me know for Lumia 925 Moderator's note: We amended the title of this post as we moved it to the most appropriate board.

  • Generic object template

    In the workflow we usually create generic objects and assign values and refer them through out the process. But instead of creating generic objects on the fly in the workflows we want to reuse the generic objects created as a template. We see that th

  • Upgrade / install new windows

    is there anyway i can install new windows or upgrade windows on my palm treo 750 through my computer and data cable.. Post relates to: Treo 750 (AT&T)