nevermind
Type: Posts; User: my21
Hi, i'm having problems making the sort be in ascending order instead of descending order.
public static void main(String[] args) throws IOException, FileNotFoundException {
int[]...
I have a GUI project, but the instructions I'm given on what is supposed to happen in each event handler is uncleared.
For one of them, it is supposed to delete a file made in another event handler....
I got it! Thanks for your help!
I don't know how to do that because I thought one of the number I typed in would get printed onto the file.
I don't know where to begin in writing this method. Any help would be great!
Write a class method for the Card class called parseCard that takes a String and returns
the corresponding card. You...
I'm having problems outputting or testing the methods by main.
public static void main(String[] args) {
}
public static int randomInt(int low, int high) {
int difference =...
I still don't understand what you mean. Could you provide me with an example?
How do I fix this error?
This is what happens
Please enter 7 scores
1
2
3
4
5
6
7
5
I'm having trouble just calling up the methods from main. I just need to test them to see if they work.
public static void main(String[] args) {
// TODO code application logic here
...
It still has the same problems as before.
Is this better?
public static void writeToFile (String filename) throws IOException {
BufferedWriter outputWriter = new BufferedWriter(new FileWriter(filename));
Scanner...
I fixed it, but the problem now is that it still takes more than 7 scores...and it does not seem to just stop.
I'm writing a method called arrayhist that has an array of 30 random integers and returns a new histogram array that has 11 elements with this content:
element 0 -- number of elements in the array...
I'm trying to ask the user to enter 7 scores by writetofile method by a loop that get written on a file on a separate line.
This is what I have so far:
public static void main(String[] args)...
I'm trying to write a method called randomInt that takes two integers,low and high, and that returns a random integer x so that low is less than or equal to x which is less than high.
public...
I'm good, thanks for your help!
I do not have the right iterative factorial algorithm
I'm having trouble calling up the methods that are in the constructor file from the main method.
Here's the code in the main method:
public static void main(String[] args) {
// Create...
Here's my main file
public static void main(String[] args) {
// Born Aug 21, 1996
int birthYear = 1996;
int birthDay = 21;
int birthMonth = 8;
something straightforward, i'm pretty sure the recursive way needs the method to be an integer but that requires return statements.
how to put it to code
This is only for the numbers 1-30, but I don't know how to calculate its factorial and match it up with the given integer.
public static void factorial() {
int sum, number = 10;
...