![]() |
Help with object arrays
hey all, im trying to learn java and im having some trouble grasping arrays pointing to objects. All of my programs fail to compile with the same "cannot resolve symbol" error. I made a simplified script to show you what I am talking about. It gives me the symbol error and points to uno[count].theThing(). This would be the same in all my other programs regardless of the object name. I can't figure this out!!
:
|
The uno variable is declared in main, you can't access it inside a different function.
You either have to pass it in, or make uno a static member of the test class. |
| All times are GMT -5. The time now is 11:23 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC