Might there be a helpful soul out there?
Bump!
Type: Posts; User: lo22
Might there be a helpful soul out there?
Bump!
Hi there I have this implamentation of the MergeSort algorithm from a text book and it looks like this:
public static void mergeSort(int[] array) {
if(array.length > 1) {
int[] left =...
Hi there I have been wondering about the generic equals method in java for a while.
And by the generic equals method I mean this method:
public boolean equals(Object o) {
if(o instanceof...
Well I have solved it now, so thanks a lot for the help! :)
I had the wrong scanner object in my nested while loop, so instead of input.nextInt(), it should be data.nextInt(). And yeah the else...
Well as I stated in my post, the program simply stands idle not ever terminating. When I try and read this, .txt file:
4 billy bob -2 18 2,54
15 31 NotANumber
true 'c' 27
Ok so I have made this small program, where you can type in the directory of a file and then my program, can count the ints, compute the max, min, sum and average. I have two methods, one which can...