This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: errors
 
It's not a secret anymore!