Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Beginning Java and the fly likes Import statement problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Import statement problems" Watch "Import statement problems" New topic

Import statement problems

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys
I am trying to compile my action class and it keeps giving me this error:

Here is the code:

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
I have fixed it. I simply need to add each bean in its own line (i.e. bean.bean1; bean.bean2;) etc
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 41531
An import statement must have a package name in. import package_name.ClassName; or import package_name.*; or import static package_name.ClassName.*; or import static package_name.ClassName.member;
I agree. Here's the link:
subject: Import statement problems