Search results

  1. Loppan

    Programming

    That makes two of us then :D
  2. Loppan

    Programming

    It's an enhanced Quick-Sort. Who got a PM?
  3. Loppan

    Programming

    Sorry, but that was my mark of what I found confusing.
  4. Loppan

    Programming

    Can someone please explain this code to me espescilly with the mark ?????: void brute(int a[], int lo, int hi) throws Exception{ if ((hi-lo) == 1) { /// ?????? if (a[hi] < a[lo]) { int T = a[lo]; a[lo] = a[hi]; a[hi] = T; pause(); } }...
  5. Loppan

    Programming

    It's the method Add who doesn't work, this line resultmatrix.setValAt[x][y] = m1.getValAt(x) + m2.getValAt(y);: public class Matriximp implements Matrix { private int [][] matrix; private int x, y; public Matriximp(int x, int y) { this.x=x; this.y=y...
  6. Loppan

    Programming

    The problem is that it says array required, int found????
  7. Loppan

    Programming

    The problem is that I'm working with a interface. I have problems with these methods: public Matrix getValueAt(int x, int y) { return (x+ +y); } public Matrix Addera(int m1, int m2) { Matriximp resultmatrix = new Matriximp (matrix.length,matrix[0].length); for (int...
  8. Loppan

    Programming

    Thanks :D Now I just gotta figure out how I can create a copy of them and getValue at a certian position?
  9. Loppan

    Programming

    I solved the problem but I have another one: I do I add two matrix in java? And to see if they match?
  10. Loppan

    Programming

    Can someone who's good with inteface and datatypes help me? I have problems with one method: My interface: public interface Add { public int plus(Add r2); } The method: public Add plus(Add r2) { t = (this.getT() * r2.getN()) + ((this.getN()) * r2.getT())...