It's not a secret anymore!*
The moose likes Beginning Java and the fly likes errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "errors" Watch "errors" New topic
Author

errors

peter brews
Ranch Hand

Joined: Jan 25, 2002
Posts: 59
Below is the code fragment that i got from someone else. I need to provide what's wrong with thefolwing method declaration.
String[] getList(Credentials cre, String name)
Reg,smita
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Aside from the fact that it has no body? Nothing.
It must return a String array.
The class Credentials needs to have been declared somewhere.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: errors
 
Similar Threads
amount currency datatype
Looking for correct data type to take in stream of xml
Please Comment on Data Section
how to sovle these two errors~~~help~~~
SQL Data Types