This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package homeworks; | |
| import java.util.ArrayList; | |
| import java.util.HashSet; | |
| import java.util.Iterator; | |
| import java.util.Set; | |
| /** Trida Pair reprezentuje dvojici (klic, hodnota). */ | |
| class Pair<K,V> { | |
| K key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ................................................................................ | |
| ................................................................................ | |
| ................................................................................ | |
| ................................................................................ | |
| ................................................................................ | |
| ........................:DMNMMMMMMMMMMMMNNMMMMMMMMMMNNNMMMMMMM.................. | |
| ..................=MMMMMMMO: ..... ?NMM$: .7MZ ...........DMN................ | |
| ...............NMM~.................... ,:, .....,M .........MM+.............. | |
| ............NMM:...~ =8MMOI?7OMMNMD .......... +MZ...OI........MMZ............. | |
| ..........MMN..........................., .,?DMN,...N ..M.......MM?............ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| bool dotykajiSe(double delkaHranyPrvnihoCtverce, double delkaHranyDruhehoCtverce, double x1, double y1, double x2, double y2){ | |
| // DRUHEJ MOC NA SEVERU | |
| if( (y1+(delkaHranyPrvnihoCtverce/2))<(y2-(delkaHranyDruhehoCtverce/2)) ){ | |
| cout << "Ctverce se ani nedotykaji."<< endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface DSAComparable<E> { | |
| /** Vrati true, pokud je this (ostre) mensi nez other, false jinak. */ | |
| boolean less(E other); | |
| /** Vrati nejmensi prvek ze vsech prvku typu E (tzn. prvek, ktery je mensi nez | |
| * jakykoli jiny prvek typu E). Vracena hodnota nezavisi na this, jen na E. | |
| */ | |
| E getLeastElement(); | |
| /** Vrati nejvetsi prvek ze vsech prvku typu E (tzn. prvek, ktery je vetsi | |
| * nez jakykoli jiny prvek typu E). Vracena hodnota nezavisi na this, jen na E. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package homeworks; | |
| /** | |
| * | |
| * @author Petr | |
| */ | |
| class Homework1 implements Mergesort{ | |
| public int[] getFirstHalfOf(int[] array) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package Cat; | |
| import java.awt.BorderLayout; | |
| import java.awt.Color; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; | |
| import java.awt.HeadlessException; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.awt.event.MouseEvent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package Polygon; | |
| import java.awt.BorderLayout; | |
| import java.awt.Color; | |
| import java.awt.Graphics; | |
| import java.awt.HeadlessException; | |
| import java.awt.event.*; | |
| import java.util.ArrayList; | |
| import javax.swing.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To change this template, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package Voting; | |
| import java.awt.BorderLayout; | |
| import java.awt.Color; | |
| import java.awt.Graphics; | |
| import java.awt.Graphics2D; |