1 Replies - 423 Views - Last Post: 03 January 2015 - 04:01 AM Rate Topic: -----

#1 x2005man   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 03-January 09

how to swap matrix from an index

Posted 02 January 2015 - 03:03 PM

Hi guys I need a help

so I have this matrix

1   2  3   4 
5   6  7   8
9  10  11  12
13 14  15  16



If the user for example enter the number 2 for index I need to swap the matrix from this index two lines with two line so this is the result what I need

1   2   5   6
3   4   7   8
9   10  13  14
11  12  15  16





Can somebody help me how to do that in java?
thanks

Is This A Good Question/Topic? 0
  • +

Replies To: how to swap matrix from an index

#2 g00se   User is online

  • D.I.C Lover
  • member icon

Reputation: 3704
  • View blog
  • Posts: 16,981
  • Joined: 20-September 08

Re: how to swap matrix from an index

Posted 03 January 2015 - 04:01 AM

Please post code so far
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1