I understand why that was happening now! Thank you so much for your explanation, it helped a lot. I have applied your corrections and it works perfectly. Thanks!
Type: Posts; User: incxx
I understand why that was happening now! Thank you so much for your explanation, it helped a lot. I have applied your corrections and it works perfectly. Thanks!
This is what is on that line:
while (newArray[j][mydimension] > pivot[mydimension]) {
j--;
}
I believe my problem may be when I add 1 to the dimensions in the constructors,...
I have an object and client class created which prints coordinates in order of their distance from the origin. The client class asks the user how many dimensions they want the array to have (x,y or...
So would i call the fillArray() before I send "dimension" and "points" into setArray() by adding this,
objects.fillArray(objects.getArray(), objects.getRange(), objects.getDimension(),...
I have made changes based on your answer. When ran, it will print the number of points the user asked for, however it only prints zeros. Is there an error happening when I set the array to the values...
I'm trying to set the method "setArray()" with the values of "dimension" and "points" entered by a user. When I try to print it by calling the "getArray()" method, it prints "[[D@6818c458". Why is...
I am making a two player game. Each player gets to roll the dice three times each, where they can keep numbers that they roll each roll. If they keep one number from the first roll, they can continue...
I've change it and called it herre:
for (int i = 0; i < points; i++){
fileOut.println(writeTofile(coordinate[i]));
}
fileOut.close();//writes to file
...
I'm trying to make my program write to a file using two methods. It compiles with no errors, but when the file that it wrote to is opened, only coordinates with (0,0) are printed. Its supposed to...
The program allows the user to enter a phrase, and the program is supposed to print the phrase using ROT13 , which replaces each english letter with the letter 13 places forward, using arrays to...
I went through the code, added some thing and fixed most of the problem. However when I enter certain amounts, such as numbers ending with 3 (e.x 85.23) it gives me the wrong amount of change. Do you...
My program is supposed to ask the user to enter a dollar value from up to 100 dollars, and output the amount of bills and coins required to create that amount with the least change possible. I'm not...