Preben

Greenhorn
+ Follow
since May 17, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Preben

Here is the code snippet from my program:

Added UBB "CODE" tags to preserve indentation. And please note the policy about names.
[This message has been edited by Frank Carver (edited October 24, 2000).]
23 years ago
I' m writing a program that takes input from a teriminal window.
The program use textbased menus.
Eks.
M e n u
-------
1. Show status
2. Edit ......
3. Delete ......
4. Exit program
Choice: 1
How can I avoid to hit "Enter" each time a selection is made?
- new programmer
23 years ago
Is there any "workarounds" to get it right?
23 years ago
What is wrong with this code?

public class isItHundred
{
public static void main ( String[] args )
{
double sum = 0 ;
for( int i = 0 ; i < 1000 ; i++ )
{
sum += 0.1 ;


}
System.out.println( String.valueOf( sum ) ) ;
}
}
When I run and compile this code, I get this output:
99.9999999999986
I expected 100.0
What is wrong with my code ?
I using Sun's jdk 1.3 on a window 98 system.
-newbie programmer :confused

23 years ago
Thanks
23 years ago
What is serialization ?
When is it used?
23 years ago
Can javabytecodes generated with Microsoft Visual J++, be used
on any platform. Is it 100% java?
-newbie Programmer
23 years ago
Is there any browsers capable of running JDK 1.3-applets,
without installing the java 1.3 plugin.

-newbie programmer
23 years ago
Thanks
-newbie programmer
23 years ago
Can class files be infected by viruses?
-newbie programmer
23 years ago
Thanks!
I also think this is an excellent site!
23 years ago
If I use very long variable identifiers. Will this in any
way "slow" down my programs?
I.E.:
String aVeryVeryVeryVeryLongIdentifier =new String("very long");
Has the access modifier any impact on my programs "speed" and
performance?
-Newbie Programmer
23 years ago
If I use very long variable identifiers. Will this in any
way "slow" down my programs?
I.E.:
String aVeryVeryVeryVeryLongIdentifier =new String("very long");
Has the access modifier any impact on my programs "speed" and
performance?
-Newbie Programmer
23 years ago