Forum: Java May 21st, 2005 |
| Replies: 1 Views: 1,118 A note of thanks to Daniweb Greetings to all,
Thanks to all the readers, posters, and moderators for their assistance and guidance this past semester. I am, by no means or stretch of the imagination, a programmer. I majored... |
Forum: Java May 5th, 2005 |
| Replies: 2 Views: 5,935 Re: Reading an array from a file Some progress has been made...
I've been able to create the text file with data, and create the array. The thing that I cannot get it to do is to use the first number in the file as the size of the... |
Forum: Java May 4th, 2005 |
| Replies: 2 Views: 5,935 Reading an array from a file How do I initialize an array that has been called from a file? There will be 5 values in the array. So should my file "input.dat" have:
5 (number of values)
4 (value)
6 (value)
7 (value)
2 ... |
Forum: Java May 2nd, 2005 |
| Replies: 2 Views: 2,914 |
Forum: Java May 2nd, 2005 |
| Replies: 2 Views: 2,914 A neater way to print elements in an array? Is there a "neater" way to code the following? (It prints the 5 data elements in an array.)
System.out.println("All the values in the array are: ");
System.out.println(+... |
Forum: Java Apr 15th, 2005 |
| Replies: 2 Views: 1,035 |
Forum: Java Apr 13th, 2005 |
| Replies: 2 Views: 1,035 Casting Help Greetings all,
I'm trying to use the Math.pow(2, b) in the following manner. The program prompts for a user input (int). It then takes the user int and puts it into a forumla that (amoung other... |
Forum: Java Apr 12th, 2005 |
| Replies: 2 Views: 892 |
Forum: Java Apr 12th, 2005 |
| Replies: 2 Views: 892 Method help that calculates a function Greetings all,
I'm having a little bit of trouble with writing a method that returns the value of a given function. The method is designed to accept an input (int b), then take the input and return... |
Forum: Java Apr 2nd, 2005 |
| Replies: 8 Views: 1,898 Re: Number formatting/Help with doubles Crash,
Here is a portion of the code that I ended up using that actually got the double formatted the way I wanted it:
System.out.printf("%5.2f",
Thanks for your help.
Bud |
Forum: Java Apr 1st, 2005 |
| Replies: 8 Views: 1,898 Re: Number formatting/Help with doubles Grrr...get ready to laugh.
"things" was a double, and initalized. So was "amount". HOWEVER, after further review, the object that returned the value to the user (totalCollected) was initalized as... |
Forum: Java Apr 1st, 2005 |
| Replies: 8 Views: 1,898 Re: Number formatting/Help with doubles From the file with the control loop:
else if (option == 3) {
System.out.println("Enter amount of Things:");
amount = Double.parseDouble(stdin.readLine());
... |
Forum: Java Apr 1st, 2005 |
| Replies: 8 Views: 1,898 Number formatting/Help with doubles Greetings all...long time reader, first time poster.
I have 2 java files, one that contains methods that do conversions, the other contains a loop that allows a user to select "what" they want to... |