Forum: Java Oct 21st, 2009 |
| Replies: 10 Views: 763 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 Oct 10th, 2009 |
| Replies: 4 Views: 174 Show your try, then we can see what you did wrong. |
Forum: Java Oct 10th, 2009 |
| Replies: 3 Views: 190 Come on, this is already about the third time you post this question, you better spend your time in figuring out a solution to your problem, double posting is not going to help you.
Double posts:... |
Forum: Java Oct 10th, 2009 |
| Replies: 2 Views: 183 For all those who want quick help (http://www.daniweb.com/forums/announcement8-2.html). |
Forum: Java Sep 25th, 2009 |
| Replies: 5 Views: 803 After 25 posts it's certainly time to become familiar with something which is utterly important on this forum.
Most people call it "code tags (http://www.daniweb.com/forums/announcement9-3.html)".
... |
Forum: Java Sep 23rd, 2009 |
| Replies: 5 Views: 803 >any idea?
I actually don't quite get the question of your assignment.
Also I see no code I can help you with.
But I know some interesting code which can help you to get help, here on this... |
Forum: Java Sep 16th, 2009 |
| Replies: 5 Views: 671 I also own a copy of that book and I have to say one thing: It's a great book! |
Forum: Java Sep 15th, 2009 |
| Replies: 5 Views: 671 Seems like I have a lot more luck than you:
http://www.janiry.com/bruce-eckel/
(the Java e-book is for and older Java version, 1.4 I believe, but is still useful)
Have success reading them :P |
Forum: Java Sep 5th, 2009 |
| Replies: 2 Views: 264 Please have a nice read (http://www.catb.org/~esr/faqs/smart-questions.html). |
Forum: Java Aug 29th, 2009 |
| Replies: 7 Views: 409 I wouldn't complain when developing in Java takes longer, as long as I get paid per hour :P |
Forum: Java Jul 30th, 2009 |
| Replies: 3 Views: 327 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: 327 You would better make use of arrays to avoid such huge switches. |
Forum: Java Jul 29th, 2009 |
| Replies: 4 Views: 219 Do you imply that I have to write the program?
There's one obstacle in your way:
We only give homework help to those who show effort! (http://www.daniweb.com/forums/announcement8-2.html)
So please... |
Forum: Java Jul 29th, 2009 |
| Replies: 4 Views: 219 Well, you just posted your assignment.
Is there any code you wrote to follow?
What do you have now? |
Forum: Java Jul 28th, 2009 |
| Replies: 4 Views: 259 http://catb.org/~esr/faqs/smart-questions.html#urgent |
Forum: Java Jul 26th, 2009 |
| Replies: 4 Views: 1,187 >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 22nd, 2009 |
| Replies: 3 Views: 216 To the OP:
It would be better that you chose a better thread title in future, a title like "need help.." is useless, because pretty much everyone which opens a thread here needs help.
Try to be... |
Forum: Java Jul 21st, 2009 |
| Replies: 4 Views: 299 I think you've misunderstand him: no one will do it for you.
What you could do is post the criteria down in this thread, together with your own try, then we can check whether you did it correctly,... |
Forum: Java Jul 21st, 2009 |
| Replies: 3 Views: 424 Congratulations! You've just decreased your chances of being helped by the people here.
You can find your double thread here (http://www.daniweb.com/forums/thread205529.html) (in case you don't know... |
Forum: Java Jul 20th, 2009 |
| Replies: 10 Views: 657 Wrong!
You are just spoon-feeding the OP, is that what you want?
I can say you: it's against Daniweb's homework policy (http://www.daniweb.com/forums/announcement8-2.html).
Ever heard of this? I... |
Forum: Java Jul 20th, 2009 |
| Replies: 11 Views: 516 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 Jul 19th, 2009 |
| Replies: 7 Views: 379 To the OP:
Well, as you have previous knowledge of C++, then you'll have no problems in understanding and applying these before start writing any other program:... |
Forum: Java Jul 11th, 2009 |
| Replies: 8 Views: 430 Well, apparently I was wrong, but it will work for numbers which consist out of three digits :) |
Forum: Java Jul 11th, 2009 |
| Replies: 8 Views: 430 Well, I guess it works for every number.
But feel free to tell me that I'm wrong
(If you find a number where this algorithm won't operate correctly on).
Edit:: No, it doesn't work for every... |
Forum: Java Jul 11th, 2009 |
| Replies: 8 Views: 430 Well, I know an algorithm:
The first step is concatenating the number one time after itself.
This will give us the opportunity to easily find the first part of the possibilities.
The second step... |
Forum: Java Jul 11th, 2009 |
| Replies: 5 Views: 301 Please don't write whole posts in code tags, instead use code tags only whenever you need to post a snippet of code.
>it was silly on my part i guess
No, it's certainly not silly to ask for help,... |
Forum: Java Jul 2nd, 2009 |
| Replies: 5 Views: 211 Look: http://www.daniweb.com/forums/post906316.html
Edit:: This double-thread is deleted by an Admin. |
Forum: Java Jun 24th, 2009 |
| Replies: 1 Views: 217 Smart trick, using two different accounts to post the same question across multiple forums on Daniweb:
http://www.daniweb.com/forums/thread199505.html... |
Forum: Java Jun 6th, 2009 |
| Replies: 6 Views: 670 All modern browsers (= all today's browsers) have something like a password manager which will safely guard that information for you and fill it in automatically for you when you visit that... |
Forum: Java Jun 5th, 2009 |
| Replies: 6 Views: 670 And why would you ever want to do this? |
Forum: Java May 31st, 2009 |
| Replies: 18 Views: 607 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: 607 >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: 607 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: 607 >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... |
Forum: Java May 30th, 2009 |
| Replies: 5 Views: 784 What about using string patterns (http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html) ? |
Forum: Java May 30th, 2009 |
| Replies: 5 Views: 784 Do you mean a quadratic equation like this: ax^2 + bx + c ?
By the way: May the terms be placed in another order?
Edit:: Sorry: I see that it's not what I thought, it's a conics equation (:P)... |
Forum: Java May 25th, 2009 |
| Replies: 6 Views: 850 Take a look at the following:
Forum announcement (http://www.daniweb.com/forums/announcement9-3.html)
Read this before posting (http://www.daniweb.com/forums/thread78223.html)
>Push it and... |
Forum: Java May 21st, 2009 |
| Replies: 1 Views: 159 Hi, mate, this forum isn't made for 'testing' how your image is displayed :angry: !!
By the way, you even don't have a question and this thread isn't Java related ! |
Forum: Java May 20th, 2009 |
| Replies: 2 Views: 200 If you program in assembler, knowledge of a high-level/middle-level programming language is already assumed before you even start learning assembly, and you don't know how a simple loop works in... |
Forum: Java May 1st, 2009 |
| Replies: 2 Views: 2,788 Well, I forgot to mention you should click Full specs :) |