# Search:

Type: Posts; User: miller4103

Page 1 of 2 1

1. ## Thread: Trouble with comparing variables.

by miller4103
Replies
5
Views
370

### Re: Trouble with comparing variables.

I figured it out but do not know how to fix it. What is happening is it wants the value of the next numbers rolled not the ones that are currently on the screen. so if the problem is 7+1 and the...
2. ## Thread: Trouble with comparing variables.

by miller4103
Replies
5
Views
370

### Trouble with comparing variables.

I have a math program that generates random numbers but i cannot figure out why the answer always says not correct. My logic seems sound but i might be missing something.

Variable l = new...
3. ## Thread: no ending after decimal point.

by miller4103
Replies
11
Views
683

### Re: no ending after decimal point.

It enters a lot of 0's. It does not continue answering the equation tho. Why is that?
4. ## Thread: no ending after decimal point.

by miller4103
Replies
11
Views
683

### Re: no ending after decimal point.

the output = 2
5. ## Thread: no ending after decimal point.

by miller4103
Replies
11
Views
683

### Re: no ending after decimal point.

I dont want it to round. I want the pie to continue forever until i shut down the program.

I thought big.setscale(BigDecimal.ROUND_CIELING) would continue to count after the decimals with no set...
6. ## Thread: no ending after decimal point.

by miller4103
Replies
11
Views
683

### Re: no ending after decimal point.

import java.lang.Math;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.*;
/**
*
*
*/
public class Pie {
7. ## Thread: no ending after decimal point.

by miller4103
Replies
11
Views
683

### Re: no ending after decimal point.

This is what i have so far:

System.out.println((big.setScale(BigDecimal.ROUND_CEILING)));

Problem is when i run it i get this error:

Exception in thread "main"...
8. ## Thread: no ending after decimal point.

by miller4103
Replies
11
Views
683

### no ending after decimal point.

How do i get my program to keep going until the end is reach of a number? For example 22/7 = pie. How do i get the program to keep giving numbers after pie instead of stoping after 9 or 10 decimal...
9. ## Thread: out of range help.

by miller4103
Replies
1
Views
275

### out of range help.

I am having a problem. When i input "na" into the textfield it should output na but instead what its doing is giving me a out of range error of 3. My thinking is that it shouldnt do that because the...
10. ## Thread: Need help with write to .dat file code from textarea

by miller4103
Replies
3
Views
394

### Re: Need help with write to .dat file code from textarea

PhHein thank you that fixed it. setText was erasing everything so nothing was added.
11. ## Thread: Need help with write to .dat file code from textarea

by miller4103
Replies
3
Views
394

### Need help with write to .dat file code from textarea

I have other part of program reading from textField which works fine. My problem is i cannot get the textArea to do the same thing:

ind = TextArea

private void...
12. ## Thread: Need help to format input.

by miller4103
Replies
7
Views
365

### Re: Need help to format input.

Thank you very much for the nudge.

13. ## Thread: Need help to format input.

by miller4103
Replies
7
Views
365

### Re: Need help to format input.

I have never heard about substrings. What are they. Also i will try a loop right now. I dont know why i didnt think of a loop although i dont know how to get it to do that.
would i use an if-for or...
14. ## Thread: Need help to format input.

by miller4103
Replies
7
Views
365

### Re: Need help to format input.

String ja = textArea;
add0 = input number variable;

I need the input number to be 12345678; (input from user 8 numbers)
but when its output (write to .dat) it gets written as 123-45-678:
How...
15. ## Thread: Need help to format input.

by miller4103
Replies
7
Views
365

### Need help to format input.

When i input a number in my append i need to have 3 - in it. for example when i have this number 12345678 I need it to write to file 123-45-678. I would think i need to use the format thing but need...
16. ## Thread: I need help with this file reader code

by miller4103
Replies
2
Views
300

### Re: I need help with this file reader code

Thank you very much that helped. I should have seen that.
17. ## Thread: Draw a flow char to print all the prime numbers between 1 and 100. Any one can help?

by miller4103
Replies
10
Views
3,608

### Re: Draw a flow char to print all the prime numbers between 1 and 100. Any one can help?

I dont understand why you would need to draw a flow chart for that. Now you can Start buy downloading an IDE to help with programming. That would be the first start.
18. ## Thread: I need help with this file reader code

by miller4103
Replies
2
Views
300

### I need help with this file reader code

try{
// Open the file that is the first
// command line parameter
FileInputStream fstream = new FileInputStream("Inventory2.dat");
// Get the object of DataInputStream
...
19. ## Thread: I dont know what to call this tittle.

by miller4103
Replies
3
Views
387

### I dont know what to call this tittle.

Hi i need some help. I have been using ++ or -- for example i++. The problem is i would like my values to get picked at random thru my array. using ++ or -- is to predictable with what im doing. What...
20. ## Thread: Read Writer button wont add to file.

by miller4103
Replies
1
Views
391

### Read Writer button wont add to file.

my writer reader wont save data and add data to the file. When i run it all it does is overwrites the data. code is :

String add = nameField.getText();
String newLine = ("\n");
...
21. ## Thread: How to add to an array with user input

by miller4103
Replies
1
Views
636

### How to add to an array with user input

I would like to add to an array from input thru a textfield when the add button is pushed.
array im adding to:

String[] name = {"Stapler", "Pens", "Paper", "Staples"};

I have a gettext...
22. ## Thread: Incompatible types.

by miller4103
Replies
7
Views
654

### Re: Incompatible types.

Thank you very much. I have another problem. Should i make a new thread or continue on using this one?
23. ## Thread: Incompatible types.

by miller4103
Replies
7
Views
654

### Re: Incompatible types.

Thanks norm i know its in there somewear and i looked but i cannot find it. Can you narrow it down some?
24. ## Thread: Incompatible types.

by miller4103
Replies
7
Views
654

### Re: Incompatible types.

How would i do that? I need to be able to type in a string in the SearchField and when it equals lets say Stapler i need it to show some information. how do i get whats in the JTextField to compare...
25. ## Thread: How can I access my secondary interface method in my for loop?

by miller4103
Replies
3
Views
406

### [SOLVED] Re: How can I access my secondary interface method in my for loop?

It could be because im tired but i dont see where el is declared.
Results 1 to 25 of 47
Page 1 of 2 1