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.

21 Visitor Messages

  1. I will find that person who so rudely and falsely neg repped me and cost me 6 rep points for being helpful. I did NOT spoonfeed!

  2. View Conversation
    When I try to include spaces between the numbers the pattern doesn't look the same.
  3. Happy Birthday!

  4. Woo hoo!
  5. Happy Birthday!!!
  6. View Conversation
    Dear JP:

    I saw you took a lot of shit from one guy when you where trying to help someone out with some code. You acted respectfully and the the other guy was obviously without coffee for a while.

    Any help you give with my posts is very much appreciated.

    Cheers from the SPACE MONKEY. Liver long and don't drink to much.
  7. That is too hard for me. Your project is beyond my skill.
  8. View Conversation
    Hello, Did you get my PM ?
  9. public class Chapter
    {
    private DoublyLinkedList<Verse> verses;
    private Integer number;
    int numberOfVerses = 0;
    public Chapter(Integer number)
    {
    this.number = number;
    verses = new DoublyLinkedList<Verse>();
     
    }
     
    public int getNumberOfVerses()
    {
    return numberOfVerses;
    }
    public void add(Verse verse)
    {
    verses.addLast(verse);
    numberOfVerses++;
    }
     
    public void setChapterNumber(Integer number)
    {
    this.number = number;
    }
     
    public Integer getChapterNumber()
    {
    return number;
    }
     
    public DoublyLinkedList<Verse> getVerses()
    {
    return verses;
    }
     
    public Verse getVerseAt(int index) 
    {
    if (index < 0 || index >=verses.Size())
    return  null;
     
    return (verses.get(index));
    }
     
    public String getVerseAt2(int index)
    {
     
    if (getVerseAt(index) ==null)
    return null;
    return(getVerseAt(index).getVerse2());
    }
     
    public String getAllVerses()
    {
    String bigBeefyString = " ";
    for (int i =0; i < verses.Size(); i++)
    {
    bigBeefyString =  bigBeefyString + verses.get(i).getVerse2() + "\n";
    }
    return bigBeefyString;
    }
     
    public String toString()
    {
    String str = "Chapter " + getChapterNumber().toString() + "\n" + getAllVerses();
    return str;
    }
     
    public int numberOfVerses()
    {
    return(verses.Size());
    }
     
     
    }
Showing Visitor Messages 1 to 10 of 21
Page 1 of 3 123 LastLast
Page 1 of 3 123 LastLast
About javapenguin

Basic Information

Date of Birth
April 7, 1989 (35)
About javapenguin
Biography:
I am trying to help everyone. All I wanted to do was be a moderator. Like Star Wars character Ahsoka Tano.

I currently also have my own Ahsoka forum at

http://httpssitesgooglecom.messageforums.net/posting.php?mode=edit&f=5&p=3

And also like to play chess, though haven't played in about 8 months.

Am a college student at Illinois State University.
Location:
North Central Illinois
Interests:
chess, programming, stopping spammers on this forum, playing video games. Also like Star Wars.
Occupation:
java.lang.NullPointerException or JPF Anti-Spam Police Chief
Java Skill Level:
Beginner

Contact


This Page
http://www.javaprogrammingforums.com/member.php?u=6454
Instant Messaging

Send an Instant Message to javapenguin Using...

Statistics


Total Posts
Total Posts
1,631
Posts Per Day
0.31
Visitor Messages
Total Messages
21
Most Recent Message
June 24th, 2012 11:06 PM
Total Thanks
Total Thanks
390
  • Thanked 112 Times in 110 Posts
General Information
Last Activity
February 10th, 2013 10:52 PM
Join Date
May 29th, 2010

23 Friends

  1. Tjstretch Tjstretch is offline

    Forum VIP

    • Send a message via Yahoo to Tjstretch
    Tjstretch
  2. vanDarg vanDarg is offline

    Member

    vanDarg
  3. Zula Zula is offline

    Member

    Zula
Showing Friends 21 to 23 of 23
Page 3 of 3 FirstFirst 123