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
| public abstract class ZakladneZariadenie implements Zariadenie { | |
| protected String nazov; | |
| protected boolean stav; | |
| public ZakladneZariadenie(String nazov) { | |
| this.nazov = nazov; | |
| // premennú stav nie je potrebné inicializovať na 'false', ale je to vhodnné pre lepšiu čitateľnosť | |
| this.stav = false; | |
| } |
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 rozvrh; | |
| public class Rozvrh { | |
| static RozvrhovaJednotka jednotky[] = {}; // inicializujeme jednotky ako prázdne pole | |
| static void pridajJednotku(RozvrhovaJednotka jednotka) { | |
| // vytvoríme nové pole, ktoré bude väčšie o jeden prvok | |
| RozvrhovaJednotka noveJednotky[] = new RozvrhovaJednotka[jednotky.length + 1]; | |
| // skopírujeme existujúce prvky |
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 rozvrh; | |
| public class RozvrhovaJednotka { | |
| int den; | |
| int hodina; | |
| Miestnost miestnost; | |
| Predmet predmet; | |
| Vyucujuci vyucujuci; | |
| Student studenti[] = {}; // inicializujeme študentov ako prázdne pole |
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 rozvrh; | |
| public class Miestnost { | |
| String nazov; | |
| Miestnost(String nazov) { | |
| this.nazov = nazov; | |
| } | |
| } |
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 rozvrh; | |
| public class Predmet { | |
| String nazov; | |
| Predmet(String nazov) { | |
| this.nazov = nazov; | |
| } | |
| } |
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 rozvrh; | |
| public class Student { | |
| String meno; | |
| Student(String meno) { | |
| this.meno = meno; | |
| } | |
| } |
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 rozvrh; | |
| public class Vyucujuci { | |
| String meno; | |
| Vyucujuci(String meno) { | |
| this.meno = meno; | |
| } | |
| } |
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 rozvrh; | |
| public class Program3_1 { | |
| public static void main(String argv[]) { | |
| Predmet predmet = new Predmet("ANIS II"); | |
| Vyucujuci vyucujuci = new Vyucujuci("Tomáš"); | |
| Miestnost miestnost = new Miestnost("V010"); | |
| Student student1 = new Student("Anna"); |
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
| /* | |
| jednoduchý program v Jave, ktorý vypíše správu na obrazovku | |
| */ | |
| public class AhojSvet { | |
| public static void main(String args[]) { | |
| System.out.println("Ahoj Svet..."); // výpis správy | |
| } | |
| } |
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
| # Importujeme potrebne moduly | |
| from pyspark import SparkContext, Row, SQLContext | |
| from pyspark.streaming import StreamingContext | |
| from pyspark.sql import SparkSession | |
| from pyspark.sql.types import * | |
| from pyspark.sql.functions import * | |
| # Vytvorime Spark Context a Spark Session objekty |
NewerOlder