User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 427,998 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,546 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 13 of 13
Search took 0.01 seconds.
Posts Made By: Bud4java
Forum: Java May 21st, 2005
Replies: 1
Views: 1,118
Posted By Bud4java
Solution 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
Posted By Bud4java
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
Posted By Bud4java
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
Posted By Bud4java
Re: A neater way to print elements in an array?

Thanks...exactly what I was looking for!

Bud
Forum: Java May 2nd, 2005
Replies: 2
Views: 2,914
Posted By Bud4java
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
Posted By Bud4java
Re: Casting Help

Thanks for your help!


Bud
Forum: Java Apr 13th, 2005
Replies: 2
Views: 1,035
Posted By Bud4java
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
Posted By Bud4java
Re: Method help that calculates a function

Thanks :-) I'll give that a try.

Bud
Forum: Java Apr 12th, 2005
Replies: 2
Views: 892
Posted By Bud4java
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
Posted By Bud4java
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
Posted By Bud4java
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
Posted By Bud4java
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
Posted By Bud4java
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...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 9:55 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC