Search:

Type: Posts; User: miller4103

Page 1 of 2 1 2

Search: Search took 0.30 seconds.

  1. Replies
    5
    Views
    189

    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. Replies
    5
    Views
    189

    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. Replies
    11
    Views
    330

    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. Replies
    11
    Views
    330

    Re: no ending after decimal point.

    the output = 2
  5. Replies
    11
    Views
    330

    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. Replies
    11
    Views
    330

    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. Replies
    11
    Views
    330

    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. Replies
    11
    Views
    330

    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. Replies
    1
    Views
    150

    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. 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. 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. Replies
    7
    Views
    177

    Re: Need help to format input.

    Thank you very much for the nudge.

    ja.append(add0.substring(0,3)+"-"+add0.substring(3,5)+"-"+add0.substring(5)+"\n");
  13. Replies
    7
    Views
    177

    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. Replies
    7
    Views
    177

    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. Replies
    7
    Views
    177

    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. Replies
    2
    Views
    147

    Re: I need help with this file reader code

    Thank you very much that helped. I should have seen that.
  17. 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. Replies
    2
    Views
    147

    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. Replies
    3
    Views
    196

    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. Replies
    1
    Views
    225

    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. Replies
    1
    Views
    362

    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. Replies
    7
    Views
    288

    Re: Incompatible types.

    Thank you very much. I have another problem. Should i make a new thread or continue on using this one?
  23. Replies
    7
    Views
    288

    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. Replies
    7
    Views
    288

    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. [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 2