Search Results

Showing results 1 to 9 of 9
Search took 0.03 seconds.
Search: Posts Made By: tux4life ; Forum: Java and child forums
Forum: Java Oct 21st, 2009
Replies: 10
Views: 964
Posted By tux4life
So actually you want your program to take a number as input, and you want a way to get back a given digit n in the number?
For example you have the number 56231012, and you want a way to get a...
Forum: Java Jul 30th, 2009
Replies: 3
Views: 330
Posted By tux4life
Just an easy example:

String[] digits = {"", "one", "two", "three", "four", "five", "six",
"seven", "eight", "nine"};
int number = 5;
System.out.println( digits[number] );
...
Forum: Java Jul 30th, 2009
Replies: 3
Views: 330
Posted By tux4life
You would better make use of arrays to avoid such huge switches.
Forum: Java Jul 26th, 2009
Replies: 4
Views: 1,341
Posted By tux4life
>Has someone encountered this problem before?
>Would someone make a suggestion regarding how solve this problem?
Uhm...You could maybe let your program throw an error when it wasn't able to get...
Forum: Java Jul 20th, 2009
Replies: 11
Views: 534
Posted By tux4life
Currently I'm jumping into Java (I have a C++ background), and I took Head First Java to get my first Java experience, I haven't finished it yet, but up until now it's a great book.
You might say:...
Forum: Java May 31st, 2009
Replies: 18
Solved: Help! Please!
Views: 619
Posted By tux4life
If it doesn't compile, you should also paste the whole error message your compiler is giving in this thread, by the way, it isn't thux4life, it's tux4life (correct and it will save you 1 keystroke as...
Forum: Java May 31st, 2009
Replies: 18
Solved: Help! Please!
Views: 619
Posted By tux4life
>Is it ok and help with the errors?
Does it compile? Then it's syntactically correct.
Does it run and give the expected output? Then you're pretty sure that you haven't made a mistake :)
Forum: Java May 31st, 2009
Replies: 18
Solved: Help! Please!
Views: 619
Posted By tux4life
There's nothing wrong with being a beginner, and by the way: questions aren't stupid, as long as you learn something of it :)
Forum: Java May 30th, 2009
Replies: 18
Solved: Help! Please!
Views: 619
Posted By tux4life
>Can someone help me to make a program in java
Yes we can help you, please post the code you have so far (read this (http://www.daniweb.com/forums/announcement8-3.html)) and tell us where exactly...
Showing results 1 to 9 of 9

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC