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.

Results 1 to 3 of 3

Thread: Java program help

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Java program help

    Hi guys,

    I want to make a Java program based on an Excel file. I want that when I select a name on the program, I want it to look for it on the Excel and say me the values about it.

    Example: If I select Paul (for example), the program must say to me his age, his birth date and his adress (this information is on the Excel file).

    Can someone help me with this?

    Thank you!!


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Java program help

    What if there's more than one Paul?

    Reading data from a file in response to every user's query is not efficient and it gives the user no ability to change the data once read. I suggest you read the Excel file (a CSV file) completely and store it in instances of a class, say a Person class, that has the methods needed to locate and manipulate the data as needed. When done, write the data back to the file, ready for the next use.

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Java program help

    Welcome TenKoX

    Please read the Announcements page for tips on the forum. Especially number 9

    Thread moved from "Whats wrong with my code?" because I do not see any code

Similar Threads

  1. Invoke a Java program with windows program
    By jackhard in forum Object Oriented Programming
    Replies: 1
    Last Post: February 21st, 2013, 07:16 AM
  2. convert java program to java ME program
    By abhishek1212 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 4th, 2013, 03:22 PM
  3. Replies: 1
    Last Post: January 17th, 2013, 07:04 AM
  4. Replies: 1
    Last Post: July 8th, 2012, 10:23 AM
  5. how to run a java program..when the program using jar
    By miriyalasrihari in forum Java Theory & Questions
    Replies: 2
    Last Post: May 17th, 2012, 10:04 AM