This file contains 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
program project1; | |
uses interfejs, obliczenia, pliki; | |
var | |
menuprogramu:integer; | |
begin | |
writeln('Podaj wartosc z Menu: '+#10#13+'1.szyfrowanie'+#10#13+'2.deszyfrowanie'); | |
readln(menuprogramu); | |
repeat |
This file contains 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
int x = Integer.parseInt("1100110", 2); |
This file contains 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
int x = Integer.parseInt("1100110", 2); |
This file contains 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
int x = 0b1100110; |
This file contains 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
static String readFirstLineFromFileWithFinallyBlock(String path) throws IOException { | |
BufferedReader br = new BufferedReader(new FileReader(path)); | |
try { | |
return br.readLine(); | |
} finally { | |
if (br != null) br.close(); | |
} | |
} |
This file contains 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
static String readFirstLineFromFile(String path) throws IOException { | |
try (BufferedReader br = new BufferedReader(new FileReader(path))) { | |
return br.readLine(); | |
} | |
} |
This file contains 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
try ( ObjectInputStream in = new ObjectInputStream(new | |
FileInputStream("jakisPlik.bin")) ) { | |
//tutaj cosik | |
} |
This file contains 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
try ( FileInputStream fin = new FileInputStream("jakisPlik.bin"); | |
ObjectInputStream in = new ObjectInputStream(fin) ) { | |
//cosik | |
} |
This file contains 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
switch (dzienTygodnia) { | |
case "Poniedzialek": | |
System.out.println("Początek tygodnia"); | |
break; | |
case "Wtorek": | |
case "Sroda": | |
case "Czwartek": | |
System.out.println("Jeszcze trochę !"); | |
break; | |
case "Piatek": |
This file contains 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
catch (IOException|SQLException ex) { | |
logger.log(ex); | |
throw ex; | |
} |