Search results

  1. Martin

    Programming

    Ehm.. no, I think you have the wrong number :D
  2. Martin

    Programming

    Correct, although the politically correct term is "geek", also represented by :geek:. So watch your language or you'll be booted out :D
  3. Martin

    Programming

    Well it's called the "Technology" forum for a reason ;)
  4. Martin

    Programming

    Thanks for your priceless input :p
  5. Martin

    Programming

    I don't get it, sorry :D
  6. Martin

    Programming

    This is tricky, don't you have a description to go with this maybe?
  7. Martin

    Programming

    Well it's a recursive sorting algorithm from what I can tell. I don't know what the question marks are for, I guess maybe a binary operator or something. Obviously the "/// ????the whole loop" part is just a comment.
  8. Martin

    Programming

    I haven't tested your code but make sure you get the coordinates right, that can be tricky. Print your results so that you always make sure your x and y variables have the intended value, I found out it doesn't take a lot to get them mixed up.
  9. Martin

    Programming

    :frown:
  10. Martin

    Programming

    Humor me and test it ;)
  11. Martin

    Programming

    Can you be a little more specific? :angel: Where and when?
  12. Martin

    Programming

    Is that the code as in your program cause it looks pretty strange to me.. why use getValue() in the first place when you can just pick out the numbers from the array? and getValue() looks pretty strange too. Just don't get what you're trying to accomplish..
  13. Martin

    Programming

    Copy the matrix? In other words copy one array to another? System.arraycopy(array1, 0, array2, 0, array1.length); public int getValue(int[][] matrix, int x, int y) { return int[y][x]; } :)
  14. Martin

    Programming

    Hell, I wanted to excercise the mind, here's a class to add, subtract and multiply matrices :D class matrix { public static void main(String[] args) { int[][] matrix1 = {{2,1},{1,3},{2,3},{4,2}}; int[][] matrix2 = {{1,3,2,1}}; int[][] matrix3 = {{-2,1},{-3,3},{2,-3},{14,2}}...
  15. Martin

    Programming

    Addition of matrices seems rather straightforward... assuming matrices have array representation.. for (int length = 0; length < matrix1.length; length++) { for (int depth= 0; depth< matrix1[0].length; depth++) { resultmatrix[length][depth] = matrix1[length][depth] +...