English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

public class EnumTest {
public static void main(String[] args)
{
Grade grade = ____________;
switch(grade) {
case ________ :
System.out.println(grade);
default :
System.out.println("Default");
}
}
}
------------------------------------------------------------------------------------
Code Hints : Enum
public String toString () { return "Book";}
return "Book"
"Book"
enum
A
Grade.A

2006-08-03 23:22:17 · 2 answers · asked by K Ban 2 in Computers & Internet Programming & Design

2 answers

So what is your question? Java , Java Challenge

2006-08-03 23:26:57 · answer #1 · answered by Joe_Young 6 · 0 0

You probably ought to start via naming the data to tournament the training, and that i think that case concerns. The record containing the worker type ought to be "worker.java". The record containing the Assignment03 type ought to be "Assignment03.java". The variables of variety worker ought to be "worker" fairly than "worker". additionally, I word that Assignment03 is a component of the equipment worker, however the worker type isn't. restore those issues, after which see what else you run into.

2016-12-14 19:13:08 · answer #2 · answered by niederberger 4 · 0 0

fedest.com, questions and answers