The Artima Developer Community
Sponsored Link

Design Forum
Please help me with a program

1 reply on 1 page. Most recent reply: Mar 18, 2003 6:21 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Kristen

Posts: 2
Nickname: kristen
Registered: Mar, 2003

Please help me with a program Posted: Mar 8, 2003 12:52 PM
Reply to this message Reply
Advertisement
I was given this assignment:

Implement an ADT called "CharacterString" which represents a string by storing it as a linked list of characters. Your ADT should implement the following methods:

- constructors (empty constructor, constructor which is passed a String)
- append a character
- append a CharacterString
- remove a character
- find location of a character
- get length (should not have to iterate through the list and count items)
- is Empty (returns true or false)
- is Substring (given another CharacterString)
- find a substring (given another CharacterString)
- remove a substring (given another CharacterString)


I need help starting it.....can someone please help me?


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Please help me with a program Posted: Mar 18, 2003 6:21 PM
Reply to this message Reply
Sure. You start by creating a file called CharacterString.Java.

Flat View: This topic has 1 reply on 1 page
Topic: java.lang.Object is a class? Previous Topic   Next Topic Topic: Can package have access modifiers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use