Forum: Java Oct 21st, 2009 |
| Replies: 10 Views: 964 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 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 You would better make use of arrays to avoid such huge switches. |
Forum: Java Jul 26th, 2009 |
| Replies: 4 Views: 1,341 >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 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 Views: 619 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 Views: 619 >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 Views: 619 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 Views: 619 >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... |