Search:

Type: Posts; User: chunkymonkey

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Thread: RuleSet

    by chunkymonkey
    Replies
    0
    Views
    659

    RuleSet

    hello,
    at work we are having a problem with some website not running with a notice that " the application is blocked because of a rule set" in java.
    I'm not sure what the java ruleset does. Could...
  2. Replies
    6
    Views
    6,756

    Re: overloaded consctructors

    okay, but I have to have a constructor for my homework assignment. So is it supposed to go in the constructor? Or would it go in the main method.
    Sorry, I'm too new to Java to have a good handle on...
  3. Replies
    6
    Views
    6,756

    Re: overloaded consctructors

    okay, thank you, That helps.
    Unfortunately, from this answer, as I started trying to code this homework assignment, I have another question.
    So, I found out that I'll have a main called Date, and a...
  4. Replies
    6
    Views
    6,756

    overloaded consctructors

    hello,
    for my Java class we need to create an overloaded constructor. I've been watching tutorials on youtube, and the ones I'm watching always seems to have the main method called something, for...
  5. Replies
    6
    Views
    352

    Re: date problem

    So, reinstalling did the trick. I don't see where I do this, but how do I mark this as solved?
  6. Replies
    6
    Views
    352

    Re: date problem

    I feel pretty confident that it's the exact code. I selected all, and copied it to this forum.
    I have another computer. I'll try installing Eclipse on it, and copy and paste to it, to see if it...
  7. Replies
    6
    Views
    352

    Re: date problem

    A few times. With different variations of commenting out the System.out.println statements. For example

    System.out.println("yyyy/MM/dd");
    System.out.println(for1.format(date1));
    ...
  8. Replies
    6
    Views
    352

    date problem

    Hello,
    For my Java class I have to output the date in multiple formats. So I was going to start very simple and came up with the following code
    [code]
    import java.util.Date;
    import java.text.*;
    ...
  9. Thread: loop

    by chunkymonkey
    Replies
    13
    Views
    467

    Re: loop

    okay, sorry to be a pest, but in your example,

    for (int wage : wages) {
    if ((wage >= 200) && (wage <= 299)) {
    salaryRanges[0] ++;
    } else if ((wage >= 300) && (wage <= 399)) {...
  10. Thread: loop

    by chunkymonkey
    Replies
    13
    Views
    467

    Re: loop

    dboxall123, I really appreciate your help, but I'm still not getting the output correctly. I'm sure it's my fault because I'm new to Java.
    So in your example, is salaryRanges[0] an array you use...
  11. Thread: loop

    by chunkymonkey
    Replies
    13
    Views
    467

    Re: loop

    sorry, I'm very new to Java, and I'm not sure I'm explaining myself well. So this is the requirement.
    "Use a single-subscripted array to solve the following problem: A company pays its salespeople...
  12. Thread: loop

    by chunkymonkey
    Replies
    13
    Views
    467

    Re: loop

    thank you jim829

    dboxall123 to clarify "I'm not sure what you mean about grouping the numbers together, "
    my output is supposed to show
    amounts occurances
    sales...
  13. Thread: loop

    by chunkymonkey
    Replies
    13
    Views
    467

    Re: loop

    Thank you for the quick replies.
    I thought since
    for (int showArr: salesAmounts) {
    System.out.print(showArr);
    was outside of the brackets for the while statement, that it was outside of...
  14. Thread: loop

    by chunkymonkey
    Replies
    13
    Views
    467

    loop

    Hello,
    For my Java class, I need to prompt the user for sales amounts, and break on a negative number. so far I have this


    while (true) {

    for (int count = 0; count < salesAmounts.length;...
  15. Replies
    3
    Views
    3,591

    Re: Array Sort

    Thank you for the reply jim829. I actually did google how to sort, but it wasn't working, which is why I was asking for a generic example. I'll try googleing a bubble sort
  16. Replies
    3
    Views
    3,591

    Array Sort

    Hello,
    could I ask for an example of a sort for integers in ascending order in an Array?
    I was trying to sort my Array this morning but it wasn't working.
    I know that usually everyone wants to see...
  17. Replies
    3
    Views
    547

    Re: array numbers

    Awesome! thank you some much for the help. I'll try the ArrayList.
  18. Replies
    3
    Views
    547

    array numbers

    Hello,
    For my Java class I have to create an array. I won't know how many numbers will be input into the array. So far on the youtube videos I've seen, to create an array, they always seem to know...
  19. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,192

    Re: Scanner

    Thanks again, I wasn't sure about the printf thing, but after some googling I came up with this.
    System.out.print("Product 1: ");
    System.out.printf("%.2f",dollarsmadeprod1);...
  20. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,192

    Re: Scanner

    Thank you!! that did it!
    only one more thing if you don't mind.
    I need my System.out.println statements to be formatted to only have 2 decimal places.
    right now they look like this...
  21. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,192

    Re: Scanner

    okay, actually, I decided to start over, but the Scanner is still my problem. I will include the code, but the bigger problem for me right now is the the integer that I think should be holding me...
  22. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,192

    Re: Scanner

    thank you so much for the reply Jim, but
    keyboard.close()
    or
    keyboard.close();
    both give the "keyboard cannot be resolved" error.
  23. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,192

    Scanner

    hello,
    I need to create a Scanner in my code, and I've googled it and it seems like I can open the Scanner utility just fine. But I found out later that you need to close the Scanner, and I can't...
  24. Replies
    11
    Views
    902

    Re: constructor

    Wow! I guess that shows how new I am. I didn't know that!

    --- Update ---

    Wow! I guess that shows how new I am. I didn't know that!
  25. Replies
    11
    Views
    902

    Re: constructor

    Thank you so much for the reply. I'm very new to this, and had to Google instance fields, but I think I see what you're saying. I'll try that, thank you again.
Results 1 to 25 of 33
Page 1 of 2 1 2