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...
Type: Posts; User: chunkymonkey
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...
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...
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...
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...
So, reinstalling did the trick. I don't see where I do this, but how do I mark this as solved?
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...
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));
...
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.*;
...
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)) {...
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...
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...
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...
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...
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;...
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
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...
Awesome! thank you some much for the help. I'll try the ArrayList.
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...
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);...
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...
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...
thank you so much for the reply Jim, but
keyboard.close()
or
keyboard.close();
both give the "keyboard cannot be resolved" error.
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...
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!
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.