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: BLUEJ Program Help

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    1
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default BLUEJ Program Help

    Hello I need help on my BLUEJ program.

    Complete this application with the following specifications:
    1.Input the words into a single String variable as a comma-delimited list using a showInputDialog (or you may use a Scanner object).
    2.The words from the list must tokenized by the split() method of type String and assigned to a String array prior to sorting.
    3.Examples of sorting algorithms are provided in Chapter 19; do not use the sort method of the Array class (or any other Java library sorting Class) to sort the array (except as noted below).
    4.The alphabetizing is case insensitive, so use the appropriate String method for comparing.
    5.Output the list with each word on a separate line into a showMessageDialog (or you may use the print() and/or println() methods).

    This is what i have:

    public class Strings
    {
    public static void main(String[] args)
    {
    Scanner reader = new Scanner(System.in);

    String s1 = new String("Dog, Mouse, Cat, Pig, Monkey");

    String[] t1 = s1.split(",");


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: BLUEJ Program Help

    But what is your problem?
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  3. #3
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,465
    My Mood
    Grumpy
    Thanks
    0
    Thanked 158 Times in 149 Posts

    Default Re: BLUEJ Program Help

    BLUEJ Program

    Duplicate post
    Improving the world one idiot at a time!

Similar Threads

  1. Bluej help
    By kiara4 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 13th, 2012, 04:29 PM
  2. java Bluej Exercise
    By kiara4 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 27th, 2012, 03:43 PM
  3. Bluej issue
    By BeardedAxeWound in forum Object Oriented Programming
    Replies: 16
    Last Post: August 26th, 2012, 03:07 AM
  4. BlueJ trouble or program trouble (Combining Arraylists)
    By star12345645 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 11th, 2012, 12:15 PM
  5. Make brick wall using BlueJ
    By boumasmoud in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 3rd, 2011, 04:32 PM

Tags for this Thread