This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
doubt in this snippet
Joined: Nov 23, 2006
Jan 10, 2008 23:48:00
public class Work1
public static void main(
args)// throws Exception
int x =44;
The output of the above code is:
And I want make it as: false
1.Change any data type or anything in declaration of the variable.
2.no more changes is System.out.println statements
Jesper de Jong
Joined: Aug 16, 2005
Jan 11, 2008 01:11:00
"Java Lover", please check your private messages. You can see them by clicking
My Private Messages
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
Joined: Oct 27, 2005
Jan 11, 2008 01:27:00
One hint: doubles and floats have some special values that are not "real" numbers. You can find them in the Double and Float classes. Check those out.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: doubt in this snippet
wht would be out put of the programm
Why does x=x++ cause infinite loop?
why is the below code not printing 2 i agree its a post increment but its being assigned to x???
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015