Hi guys,
Im using a vector to store my data and when I want to print it, it outputs the following:
FT@19821f
FT@addbf1
Here is the method and the call:
Method in directory class:
public void display()
{
ListIterator vIter = vec.listIterator() ;
while ( vIter.hasNext() )
{
System.out.println( vIter.next() ) ;
}
}
Call from Main class:
Directory d = new Directory() ;
d.add( "myname",1 ) ;
d.add( "yourname",2) ;
d.display() ; // Output data
Im using a vector to store my data and when I want to print it, it outputs the following:
FT@19821f
FT@addbf1
Here is the method and the call:
Method in directory class:
public void display()
{
ListIterator vIter = vec.listIterator() ;
while ( vIter.hasNext() )
{
System.out.println( vIter.next() ) ;
}
}
Call from Main class:
Directory d = new Directory() ;
d.add( "myname",1 ) ;
d.add( "yourname",2) ;
d.display() ; // Output data