Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Boell Fischer   on Nov 28 In Java Category.

  
Question Answered By: Taylor White   on Nov 28

I suspect the problem could be with return value of
myclass.getSomeInt(). Ensure that it returns an int
value. Ensure also that all numbers next to 'case' are
constants or constant  expressions. No variables or
expressions involving vairbales are allowed next to
'case'.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Java language: switch statement Or get search suggestion and latest updates.


Tagged: