Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

SortedList implements Serializable

SortedList implements Serializable

SortedList implements Serializable

I am using JDK 1.2 on IBM comp. machine for this project.

The project is to create a sorted list from a bunch of instances of a class called Student. Student consists of Student_number, and student name. Another class called SortedList has a method "insert", which does the sorting.

eg. of bunch
//this is in the test.java class
SortedList s = new SortedList();
s.insert(7, new Student(7, "Jack"));
s.insert(1, new Student(1, "Helen"));
s.insert(9, new Student(9, "Moris"));
s.insert(3, new Student(3, "Buddy"));

//SortedList class has method "insert", which contains the
//following arguments:
public void insert(long key, Object stu)

//the interface Sortable is implemented in the Student class
interface Sortable {
boolean compare(Object current, Object next);

class Student implements Serializable, Sortable
class SortedList extends SLList implements Serializable {
//SLList = Singly-Linked List (non-circular)

The question is why do I get this compilation message:
"Interface Serializable of class SLList not found.", when SLList is
also implemented with the interface Serializable?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close