following simple java questions :)

T

Thomas

As now I have to use the class Stack and use it for a class Symbols. The
thing is, the class Synbol is defined in other package, so I get
unrecognized symbol 'Symbol'. ;). What are solutions to this ? Should I use
more generall type in Stack like Object (since every class inheriths from
it) ?
Are there any solution like 'C'-style headers or similar to let know class
Stack where the class Symbol is defined ?
 
J

Joshua Cranmer

As now I have to use the class Stack and use it for a class Symbols. The
thing is, the class Synbol is defined in other package, so I get
unrecognized symbol 'Symbol'. ;). What are solutions to this ? Should I
use more generall type in Stack like Object (since every class inheriths
from it) ?
Are there any solution like 'C'-style headers or similar to let know
class Stack where the class Symbol is defined ?

import /package/.Symbol;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top