Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
OCPJP Basic
Sirojan Gnanaretnam
Greenhorn
Posts: 5
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
is any other value suitable for 0 and X in int i3?could you please help me??.if not any other value suitable what the reson for that.can you explain??
public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { int i1=50; int i2=070; System.out.println(i1); System.out.println(i2); [b]int i3=0XFE;[/b] System.out.println(i3); // TODO code application logic here } }
Ankit Garg
Sheriff
Posts: 9707
43
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Sirojan,
Can you clarify your question a little further? Values starting with 0x are hexadecimal values. The value has to be in range of int for you to be able to assign it to i3...
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Array assignment -- need help
OO basics doubt
ARRAY doubt
Method parameters doubt?
Equals operator
More...