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.

Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28

Thread: Output sentences using keywords in java

  1. #26
    Junior Member
    Join Date
    Feb 2013
    Posts
    16
    My Mood
    Confused
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Re: Output sentences using keywords in java

    It works, by
    System.out.println(newarray.toString());
    all the elements in the arrayList is printed out.
    but I get warning that says
    - ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized

    Maybe I should not worry about it?

  2. #27
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Output sentences using keywords in java

    Replace the E in <E> with the data type that is going in the arraylist.

    Why are you putting the array's into an ArrayList?
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    GameGirl91 (February 20th, 2013)

  4. #28
    Junior Member
    Join Date
    Feb 2013
    Posts
    16
    My Mood
    Confused
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Re: Output sentences using keywords in java

    I thought it would be easier to use it, rather than just using a standard array. I also removed the first line, as it was not useful.

    --- Update ---

    I sorted my program out by just using an standard array, and by using an if statement. Thank you for your time, I really appreciated

Page 2 of 2 FirstFirst 12

Similar Threads

  1. keywords
    By BLUEJ in forum Java Theory & Questions
    Replies: 5
    Last Post: January 14th, 2013, 08:05 PM
  2. Can you name the Java keywords?
    By KevinWorkman in forum The Cafe
    Replies: 7
    Last Post: November 19th, 2011, 06:13 PM
  3. java code to split text documents into paragraphs and sentences
    By draksha in forum Java Theory & Questions
    Replies: 5
    Last Post: August 17th, 2011, 05:06 AM
  4. keywords
    By crazyjava in forum Java Theory & Questions
    Replies: 2
    Last Post: September 29th, 2010, 12:13 AM
  5. how to extract variables,keywords,operator...
    By Nanda in forum Java Theory & Questions
    Replies: 1
    Last Post: November 12th, 2009, 10:19 PM

Tags for this Thread