Results 1 to 2 of 2
Thread: Public void issues??
- 04-11-2014, 02:14 AM #1
Member
- Join Date
- Mar 2014
- Posts
- 12
- Rep Power
- 0
Public void issues??
public class BowlingTeam {
public static void main(String[] args) {
String teamName;
String[] members = new String[4];
public void setTeamName(String team) {
teamName=team;
}
public String getTeamName() {
return teamName;
}
public void setMember(int number, String name) {
members[number]=name;
}
public String getMember(int number) {
return members[number];
}
}
}
Compiler is telling me 'illegal start of expression' and ';' expected for all of these methods and I don't know why, they look correct to me. Then again, what do I know! Any suggestions would be appreciated!
- 04-11-2014, 02:23 AM #2
Member
- Join Date
- Mar 2014
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
public static void main(String... args)???
By SnakeDoc in forum New To JavaReplies: 5Last Post: 01-10-2013, 09:30 AM -
why public void clear() had error pls Help mE
By zafri in forum New To JavaReplies: 2Last Post: 10-02-2012, 11:12 AM -
What is the difference between Public Static Void and Public Void?
By whateverme in forum New To JavaReplies: 1Last Post: 12-04-2010, 06:41 PM -
Public static void main (String args[])
By arefeh in forum New To JavaReplies: 12Last Post: 01-28-2010, 12:58 PM -
calling a public void method from a class button
By supa_kali_frajilistik in forum AWT / SwingReplies: 1Last Post: 05-21-2008, 06:40 AM
Bookmarks