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

    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 online now Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    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, 03:50 PM
  2. interactive input i think.
    By seanfmglobal in forum New To Java
    Replies: 1
    Last Post: 11-29-2010, 02: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, 02:26 PM
  4. Interactive floorplan
    By teckygamer in forum AWT / Swing
    Replies: 0
    Last Post: 09-06-2010, 01:43 PM
  5. Interactive Panel
    By homistar in forum Java 2D
    Replies: 4
    Last Post: 10-06-2009, 10: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