Search:

Type: Posts; User: lo22

Search: Search took 0.10 seconds.

  1. Re: Why does this MergeSort implementation not receive IndexOutOfBondsExpception

    Might there be a helpful soul out there?

    Bump!
  2. Why does this MergeSort implementation not receive IndexOutOfBondsExpception

    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 =...
  3. Why is it that the generic equals method must accept a parameter of the type object?

    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...
  4. Re: Reading integeres from a .txt file, my method never terminates.

    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...
  5. Re: Reading integeres from a .txt file, my method never terminates.

    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
  6. Reading integeres from a .txt file, my method never terminates.

    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...
Results 1 to 6 of 6