File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes TIJ  3     problem  at simpeltest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "TIJ  3     problem  at simpeltest " Watch "TIJ  3     problem  at simpeltest " New topic
Author

TIJ 3 problem at simpeltest

Jean Tabi
Greenhorn

Joined: Mar 08, 2009
Posts: 3
hi,

i m working my way through tij 3 . Until now everyting went okay , but I can t make c03 assgigment.java run .
And yes i googled it already, but the results didn t help me out .

Can enyone help my?

Jean
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
Welcome to JavaRanch

We need more details. What is the exercise? What errors are you getting?
Jean Tabi
Greenhorn

Joined: Mar 08, 2009
Posts: 3
Hi,

it is the first exercice from the book Thinking in java from Bruce eckel .

And the error that i get is:

Assigment . Java : cannot find symbol
symbol : method expect ( java.lang.String[])
location class Test
monitor.expect (new String[] {

1error

???

can you help
Jean
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
That looks like a compiler error.

Have you downloaded any code from Eckel's website? There is a set of classes which make it easier to run those examples, and you would need them.
What methods have you got in the monitor object? Have a look at them, and see how they are spelt The tiniest error will prevent your code from compiling.
Clyde DeSouza
Greenhorn

Joined: Mar 16, 2009
Posts: 26
the package must be accessible while running the code sample i guess you must also get the import error while running this example not just the one error as you have specified
anyways forget the code its of no use just for displaying proper Output format just use the code i have given below it will work fine got it!




Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38851
    
  23
Failure to import the packages would result in a different compiler error, Joywish Man.
Clyde DeSouza
Greenhorn

Joined: Mar 16, 2009
Posts: 26
Failure to import the packages would result in a different compiler error, Joywish Man.


thanks for informing, i know that already i told Jean that he might have not specified that error now do you get it.

Are you tryin to increase msg count rather answer his question
James Mathews
Greenhorn

Joined: Mar 16, 2009
Posts: 7
What is TIJ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
What is TIJ?

Bruce Eckel's book Thinking in Java: http://www.mindview.net/Books/TIJ/


Ping & DNS - my free Android networking tools app
Jean Tabi
Greenhorn

Joined: Mar 08, 2009
Posts: 3


okay ,

I found and downloaded the code from Eckel's website also thanks to Java Ranch
. I set the calsspath land compield it the code from the TIJ site . But i am still getting the error
discribed above .


jean
Komal Amaresh
Ranch Hand

Joined: Oct 06, 2008
Posts: 67
Hello Jean.

I' am getting the right output. HOpe you have set your path and classpath correctly.

Komal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TIJ 3 problem at simpeltest