Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package zapocettest01;
- public class ZapocetTest01 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO Doplnte vytvareni instanci tridy Matice a overte implementovane metody
- Matice m = new Matice(5);
- m.naplnMatici(-5, 5);
- System.out.println("Originální matice: \n" + m.toString());
- System.out.println("Dej vedlejší diagonálu:");
- for (int i = 0; i < m.dejVedlejsiDiagonalu().length; i++) {
- System.out.print(m.dejVedlejsiDiagonalu()[i] + " ");
- }
- System.out.println();
- System.out.println("Souřadnice matice: \n " + Matice.vytvorPodleIndexu(5, 5).toString("%5.1f"));
- System.out.println("Transponovaná matice:\n" + m.transpose().toString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment