Results 1 to 4 of 4
Thread: � In java?
- 09-07-2011, 10:51 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 45
- Rep Power
- 0
- 09-08-2011, 12:17 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,540
- Rep Power
- 11
Re: � In java?
What is �?
In any case, it is not a valid Java operator. So the snippet can't appear as part of a valid Java program. And the question of the value of value does not arise.
-----
In general - and after you have sorted out what the code really is - you can find the value of a variable by using System.out.println(). Of course, finding the value leads to the more interesting question of why the variable has the value that you find it has. For that, read textbooks or internet sources. (Oracle's Tutorial is good - if only because most here have read the relevent bits) I can assure you that there is more (and better!) to be found than "is a substitute for if-else".
If you get stuck: post code that compiles and runs, say (rather than ask) what the behaviour is, and quote or link to explanations that you want to ask about.
- 09-08-2011, 12:38 AM #3
- 09-08-2011, 04:08 AM #4
Member
- Join Date
- Sep 2011
- Posts
- 45
- Rep Power
- 0


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks