Results 1 to 2 of 2
  1. #1
    mamba24 is offline Member
    Join Date
    Jun 2012
    Posts
    4
    Rep Power
    0

    Default Interactive Program

    Alrighty. I'm new to Java.
    I'm trying to write a program that begins by taking an optional command line argument, which is the name of a file.
    The format of this file is a list of persons' names, one per line.
    The program will read these names and store them in an array.
    If no command line argument is given, the program will simply create an empty array, used to store names.
    The program will then proceed to sort the list of names using selection sort (if the array is not empty). Finally, there will be a menu of options for the user to select from.
    The first is to alphabetize the list.
    Second, an option to find a particular name matching a keyword provided by the user. This should use "binary search". For example, the user could provide the keyword Davis, and if the list contains the name James Davis, the program will return this name. The program is required to return only the first ocurrence found if there's more than one.
    Third, the user could add a name to the list
    Fourth, terminate the program

    I'm using Eclipse, so if you could put the code in terms of Eclipse, that would be great.

    So far, I have a couple algorithms for binary search, selection sort, and a non-functional menu.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,556
    Rep Power
    25

    Default Re: Interactive Program

    Did yhou have any java programming questions?
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Interactive DashBoard.
    By ali_sakar in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 01-04-2012, 02:50 PM
  2. interactive input i think.
    By seanfmglobal in forum New To Java
    Replies: 1
    Last Post: 11-29-2010, 01:06 AM
  3. Regaring Image to be used as interactive map
    By richi_arora_ra in forum Web Frameworks
    Replies: 0
    Last Post: 11-19-2010, 01:26 PM
  4. Interactive floorplan
    By teckygamer in forum AWT / Swing
    Replies: 0
    Last Post: 09-06-2010, 12:43 PM
  5. Interactive Panel
    By homistar in forum Java 2D
    Replies: 4
    Last Post: 10-06-2009, 09:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •