file_id
stringlengths
5
10
content
stringlengths
57
33.1k
repo
stringlengths
8
77
path
stringlengths
6
174
token_length
int64
19
8.19k
original_comment
stringlengths
7
10.6k
comment_type
stringclasses
2 values
detected_lang
stringclasses
1 value
prompt
stringlengths
21
33.1k
3836_10
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MyFrame5 extends JFrame implements ActionListener { JComboBox comboBox; MyFrame5() { this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/MyFrame5.java
572
//comboBox.removeAllItems();// usunie wszystko z listy/ taki reset
line_comment
pl
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MyFrame5 extends JFrame implements ActionListener { JComboBox comboBox; MyFrame5() { this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this...
3836_11
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MyFrame5 extends JFrame implements ActionListener { JComboBox comboBox; MyFrame5() { this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/MyFrame5.java
572
// zwróci wybrany item
line_comment
pl
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MyFrame5 extends JFrame implements ActionListener { JComboBox comboBox; MyFrame5() { this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this...
3836_12
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MyFrame5 extends JFrame implements ActionListener { JComboBox comboBox; MyFrame5() { this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/MyFrame5.java
572
//System.out.println(comboBox.getSelectedIndex()); // zwróci index zaczynając od zera
line_comment
pl
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class MyFrame5 extends JFrame implements ActionListener { JComboBox comboBox; MyFrame5() { this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this...
3837_1
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
/** * Różne parametry są dostarczane do programu jako łańcuchy znaków, ale to klasa * Options obsługuje dostarczanie ich jako odpowiednich wartości, także i wtedy * gdy są to wartości domyślne. * * @author Sławomir Marczyński */
block_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_2
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Jeżeli pola (fields) takie jak poniżej width i height są final, to można
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_3
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// bezpiecznie udostępniać je nawet jako publiczne - najgorszą rzeczą jaka
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_4
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// może się zdarzyć to to że ktoś przeczyta ich zawartość. Zmodyfikować ich
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_5
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// się nie da, bo są final. Więc nikt niczego nie popsuje.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_6
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Przy takim podejściu aby zmienić np. szerokość (width) konieczne będzie
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_7
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// po prostu utworzenie od nowa nowego obiektu klasy Options. Nic trudnego.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_8
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
/** * Konstruktor tworzący opcje (obiekt klasy Options) z dostarczonych mu * parametrów wywołania programu. * * @param args */
block_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_9
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Tymczasowe, prowizoryczne rozwiązanie to np.:
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_12
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// i coś takiego zadziała. Poniżej jest jednak znacznie lepsza wersja
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_13
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// - prawie taka jaka mogłaby być docelowo.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_14
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// DEFAULT_WIDTH i DEFAULT_HEIGHT są wyłącznie po to aby kod źródłowy
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_15
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// był bardziej czytelny, samodokumentujący się.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_16
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Teraz mamy trochę gimnastyki, bo musi się nam udać już za pierwszym
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_17
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// razem podstawić odpowiednie wartości do width i height obiektu (są
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_18
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// final, więc w konstruktorze raz możemy wpisać coś do nich, ale tylko
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_19
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// jeden jedyny raz). Eleganckim rozwiązaniem jest użycie dodatkowych
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_20
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// zmiennych lokalnych proposedWidth i proposedHeight tak jak poniżej.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_21
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Najpierw wpisujemy do nich wartości domyślne (moglibyśmy od razu 10,
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_22
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// ale wtedy kod nie byłby samodokumentujący się, tzn. nie widać byłoby
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_23
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// co oznacza te "magiczne" 10). W ten sposób nieważne co będzie potem,
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_24
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// ale coś już mamy w proposedWidth i proposedHeight.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_25
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Można byłoby nie dawać instrukcji if wierząc iż try-catch rozwiąże
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_26
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// wszystkie problemy w jednolity sposób (sięgnięcie po nieistniejący
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_27
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// element tablicy args też wygeneruje wyjątek). Ale brak danych w args
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_28
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// prawdopodobnie będzie bardzo częsty i trudno go uznawać za sytuację
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_29
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// wyjątkową, więc spychanie obsługi tego do konstrukcji try-catch jest
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_30
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// trochę nie w stylu Javy.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_31
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Łamiemy zasadę DRY (nie powtarzaj się) po to aby łatwiej było
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_32
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// wprowadzać ewentualne modyfikacje: każda (z dwóch poniżej)
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_33
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// linijka bierze jakiś argument i wyciąga sobie z niego co
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_34
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// trzeba, a to że akurat width i height robią to samo... cóż
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_35
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// to w przyszłych wersjach może się zmienić, np. width może
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_36
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// wyciągać dane z args[0], a height z args[1].
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_37
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Zauważmy, że być może lepiej byłoby utworzyć niezależne
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_38
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// bloki try-catch dla każdego parametru - to że nam się raz
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_39
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// nie udało nie musi oznaczać że (gdy height będzie z args[1])
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_40
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// drugi raz też się nie uda.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_41
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Różnego rodzaju "dobre pomysły", których realizację odkładamy
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_42
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// na później, oznacza się zwykle znacznikiem @todo tak jak
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_43
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// to jest poniżej pokazane.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_44
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// @todo: zamiast uciszać wyjątek lepiej byłoby jakoś
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_45
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// poinformować użytkownika że podał złe parametry, np:
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_46
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// System.err.println("Złe parametry startowe programu.");
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_47
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Tu przepisujemy proposedWidth i proposedHeight do "globalnych
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_48
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// w klasie" width i height. Możemy to zrobić, choć tylko raz, bo final.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_49
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// Jeżeli ktoś doczytał do tego miejsca, to być może zauważył, że realnie
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_50
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// kod źródłowy (pomijając komentarze) jest krótki.
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_51
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// I tak powinno być - klasa obiektów nie powinna być bardzo skomplikowana
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_52
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// - nie chcemy dużo pisać, progam ma działać dzięki przemyślanej
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3837_53
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
slawomirmarczynski/java
minilife/src/minilife/Options.java
2,094
// architekturze, dobrze rozdzielonym kompetencjom klas i współpracy
line_comment
pl
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
3842_0
package com.kubukoz.fast; import java.io.IOException; public class Wyjatki { public static void main(String[] args) { niebezpiecznySyf(5); try { niebezpiecznySyfIO(5); } catch (IOException e) { System.out.println("IOException"); } catch (Exception e) { ...
kubukoz/java-fast-workshop
src/main/java/com/kubukoz/fast/Wyjatki.java
297
//robimy coś, niezależnie od tego czy się udało czy nie - np. zamykamy pliki, połączenia itd
line_comment
pl
package com.kubukoz.fast; import java.io.IOException; public class Wyjatki { public static void main(String[] args) { niebezpiecznySyf(5); try { niebezpiecznySyfIO(5); } catch (IOException e) { System.out.println("IOException"); } catch (Exception e) { ...
3842_1
package com.kubukoz.fast; import java.io.IOException; public class Wyjatki { public static void main(String[] args) { niebezpiecznySyf(5); try { niebezpiecznySyfIO(5); } catch (IOException e) { System.out.println("IOException"); } catch (Exception e) { ...
kubukoz/java-fast-workshop
src/main/java/com/kubukoz/fast/Wyjatki.java
297
//dziedziczy z RuntimeException więc nie deklarujemy
line_comment
pl
package com.kubukoz.fast; import java.io.IOException; public class Wyjatki { public static void main(String[] args) { niebezpiecznySyf(5); try { niebezpiecznySyfIO(5); } catch (IOException e) { System.out.println("IOException"); } catch (Exception e) { ...
3843_0
import java.awt.*; public class Day20_JingleRhythm { /** * Świąteczne piosenki to coś co lubimy wszyscy. Niektórzy lubią ich słuchać, ale niektorzy także grać na pianinie! * Przygotuj symulator rytmu piosenki Jingle Bells. W tablicy poniżej znajdziesz długości kolejnych nut. * Na terminalu wypisuj k...
w-polubiec/christmas-challenge
src/Day20_JingleRhythm.java
687
/** * Świąteczne piosenki to coś co lubimy wszyscy. Niektórzy lubią ich słuchać, ale niektorzy także grać na pianinie! * Przygotuj symulator rytmu piosenki Jingle Bells. W tablicy poniżej znajdziesz długości kolejnych nut. * Na terminalu wypisuj kolejne gwiazdki dla każdej nuty przez określony długością ...
block_comment
pl
import java.awt.*; public class Day20_JingleRhythm { /** * Świąteczne piosenki to <SUF>*/ public static final int SOUND_CONSTANT_MILISECONDS = 200; public static void main(String[] args) { int[] tones = { 2, 2, 4, 2, 2, 4, 2, 2, 2, 1, 8, 2, 2, 2, 1, 2, 2, 2, 1, 1, ...
3844_0
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
// ustawiasz na wskaźniku kreski dla lepszej orientacji
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3844_1
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
// ustawiasz odległość między tymi kreskami, wskaźnikami
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3844_2
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
// ustawiasz większe wartości na suwaku, na przykład 5 minor daje jeden major
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3844_3
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
// ustawiasz odległość pomedzy większymi odległościami
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3844_4
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
// dopisze liczby do wartości większych
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3844_5
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
//slaider.setOrientation(SwingConstants.VERTICAL); / tu ręcznie ustawiasz orientacje suwaka, ale możesz tez w pierwszej metodzie ustanawiającej podstawowe wartości, to pierwszy int
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3844_6
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
// dodajesz zczytywanie zmian z suwaka
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3844_7
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/SliderDemo.java
643
// kiedy coś się zmieni w źródle ma nastapić ta akcja, czyli sczytanie danych
line_comment
pl
package com.HighLand; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; public class SliderDemo implements ChangeListener { JFrame frame; JPanel panel; JLabel label; JSlider slaider; SliderDemo() { frame = new JFrame("...
3847_0
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
Kimel-PK/Java_2021-2022
Zadanie 07/src/HidingPlaceSupplier.java
359
/** * Dostawca skrytek * */
block_comment
pl
/** * Dostawca skrytek <SUF>*/ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /*...
3847_1
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
Kimel-PK/Java_2021-2022
Zadanie 07/src/HidingPlaceSupplier.java
359
/** * Interfejs pojedynczej skrytki * */
block_comment
pl
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki <SUF>*/ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
3847_2
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
Kimel-PK/Java_2021-2022
Zadanie 07/src/HidingPlaceSupplier.java
359
/** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */
block_comment
pl
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli <SUF>*/ public boolean isPresent(); /** * Otwiera skrytkę i zwraca jej wartość. * * @return wartość zawartości skrytki */ ...
3847_3
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
Kimel-PK/Java_2021-2022
Zadanie 07/src/HidingPlaceSupplier.java
359
/** * Otwiera skrytkę i zwraca jej wartość. * * @return wartość zawartości skrytki */
block_comment
pl
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
3847_4
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
Kimel-PK/Java_2021-2022
Zadanie 07/src/HidingPlaceSupplier.java
359
/** * Zwraca pojedynczą skrytkę, brak skrytek sygnalizuje za pomocą null. Metoda * może być wykonywana współbieżnie. * * @return obiekt skrytki */
block_comment
pl
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
3847_5
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
Kimel-PK/Java_2021-2022
Zadanie 07/src/HidingPlaceSupplier.java
359
/** * Liczba wątków, które mają obsługiwać przeszukiwanie skrytek. * Wartość jest stała dla danego obiektu. * * @return liczba wątków jakie mają przeszukiwać skrytki */
block_comment
pl
/** * Dostawca skrytek * */ public interface HidingPlaceSupplier { /** * Interfejs pojedynczej skrytki * */ public interface HidingPlace { /** * Zwraca true jeśli skrytka coś zawiera. W przeciwnym wypadku false. * * @return czy skrytka posiada zawartość */ public boolean isPresent(); /** ...
3854_0
package pl.kara.bitbay.info.rest; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; impo...
karaa-m/bitbay
src/main/java/pl/kara/bitbay/info/rest/AccountBalanceInformationController.java
519
//TODO TEST co jak nie poda currency sie stanie ?
line_comment
pl
package pl.kara.bitbay.info.rest; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; impo...
3854_3
package pl.kara.bitbay.info.rest; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; impo...
karaa-m/bitbay
src/main/java/pl/kara/bitbay/info/rest/AccountBalanceInformationController.java
519
//TODO FEATURE obsługa błędów walidacji i takich tam
line_comment
pl
package pl.kara.bitbay.info.rest; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; impo...
3854_4
package pl.kara.bitbay.info.rest; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; impo...
karaa-m/bitbay
src/main/java/pl/kara/bitbay/info/rest/AccountBalanceInformationController.java
519
// i zwracanie odpowiedzi, jakiś GlobalExceptionHandler albo coś w tym stylu
line_comment
pl
package pl.kara.bitbay.info.rest; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; impo...
3857_0
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent <SUF> // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ // właściwy algorytm rysujący spiralę Grap...
3857_1
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// do rysowania wykorzystamy mozliwosci klasy bazowej Canvas
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania <SUF> int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ // właściwy algorytm rysujący spiralę G...
3857_2
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// odstęp pomiędzy liniami
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy <SUF> public void rysuj_spirala(int lg, int x, int y){ //...
3857_3
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// właściwy algorytm rysujący spiralę
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_4
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// pobierz kontekst graficzny
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_5
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// Nadpisując metodę paint możemy samodzielnie coś narysować
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_6
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// Narysujmy spiralę poczynajac od punktu (15, 15), tak, aby zajęła większą część obszaru okna
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_7
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// tworzymy obiekt klasy Spirala w formie płótna do rysowania
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_8
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// Tworzymy okno aplikacji
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_9
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// W praktyce klasa JFrame jest zazwyczaj nadpisywana przez klasę użytkownika poprzez mechanizm
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_10
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// dziedziczenia i poniższe komendy powinny być ukryte w konstruktorach lub metodach publicznych klasy:
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3857_11
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Spirala.java
674
// Zniszcz obiekt okna po zamknięciu okienka
line_comment
pl
import java.awt.*; import javax.swing.*; public class Spirala extends Canvas { // prostokatny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // do rysowania wykorzystamy mozliwosci klasy bazowej Canvas int alpha=10; // odstęp pomiędzy liniami public void rysuj_spirala(int lg, int x, int y){ ...
3862_0
package pl.lodz.p.it.ssbd2015.web; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Klasa pomocnicza do widoków jsf, umożliwiajaca stworzenie tabelek, w których można zaznaczyć wiele rzędów. * @author Michał Sośnicki */ public class SelectableItem<T> implements Serializable { ...
adamkrol93/eExam
src/main/java/pl/lodz/p/it/ssbd2015/web/SelectableItem.java
465
/** * Klasa pomocnicza do widoków jsf, umożliwiajaca stworzenie tabelek, w których można zaznaczyć wiele rzędów. * @author Michał Sośnicki */
block_comment
pl
package pl.lodz.p.it.ssbd2015.web; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Klasa pomocnicza do <SUF>*/ public class SelectableItem<T> implements Serializable { private T item; private boolean selected; public SelectableItem(T item) { this.item = it...
3862_1
package pl.lodz.p.it.ssbd2015.web; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Klasa pomocnicza do widoków jsf, umożliwiajaca stworzenie tabelek, w których można zaznaczyć wiele rzędów. * @author Michał Sośnicki */ public class SelectableItem<T> implements Serializable { ...
adamkrol93/eExam
src/main/java/pl/lodz/p/it/ssbd2015/web/SelectableItem.java
465
/** * Funkcja przemieniająca dowolną kolekcję w listę zaznaczalnych obiektów, z których każdy opakowuje element * z przekazanej kolekcji. * @param iterable Coś, po czym można przejść, zbierając po drodze obiekty do opakowania. * @param <T> Typ obiektów z opakowywanej kolekcji. * @return Lista z...
block_comment
pl
package pl.lodz.p.it.ssbd2015.web; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Klasa pomocnicza do widoków jsf, umożliwiajaca stworzenie tabelek, w których można zaznaczyć wiele rzędów. * @author Michał Sośnicki */ public class SelectableItem<T> implements Serializable { ...
3863_1
package pl.evelanblog.enums; /** * Created by Evelan on 09-02-2015 - 21:31 */ public enum GameState { ongoing, // gra się toczy i jest elegancko, szczelanie etc paused, //wcisniety przycisk pauzy -> wyswietlenie przycisków coś al'a menu win, // wygrana defeat, // przegrana powermanager // power manager + pauza ...
jpomykala/PaxCosmica
core/src/pl/evelanblog/enums/GameState.java
134
// gra się toczy i jest elegancko, szczelanie etc
line_comment
pl
package pl.evelanblog.enums; /** * Created by Evelan on 09-02-2015 - 21:31 */ public enum GameState { ongoing, // gra się <SUF> paused, //wcisniety przycisk pauzy -> wyswietlenie przycisków coś al'a menu win, // wygrana defeat, // przegrana powermanager // power manager + pauza }
3863_2
package pl.evelanblog.enums; /** * Created by Evelan on 09-02-2015 - 21:31 */ public enum GameState { ongoing, // gra się toczy i jest elegancko, szczelanie etc paused, //wcisniety przycisk pauzy -> wyswietlenie przycisków coś al'a menu win, // wygrana defeat, // przegrana powermanager // power manager + pauza ...
jpomykala/PaxCosmica
core/src/pl/evelanblog/enums/GameState.java
134
//wcisniety przycisk pauzy -> wyswietlenie przycisków coś al'a menu
line_comment
pl
package pl.evelanblog.enums; /** * Created by Evelan on 09-02-2015 - 21:31 */ public enum GameState { ongoing, // gra się toczy i jest elegancko, szczelanie etc paused, //wcisniety przycisk <SUF> win, // wygrana defeat, // przegrana powermanager // power manager + pauza }
3863_3
package pl.evelanblog.enums; /** * Created by Evelan on 09-02-2015 - 21:31 */ public enum GameState { ongoing, // gra się toczy i jest elegancko, szczelanie etc paused, //wcisniety przycisk pauzy -> wyswietlenie przycisków coś al'a menu win, // wygrana defeat, // przegrana powermanager // power manager + pauza ...
jpomykala/PaxCosmica
core/src/pl/evelanblog/enums/GameState.java
134
// power manager + pauza
line_comment
pl
package pl.evelanblog.enums; /** * Created by Evelan on 09-02-2015 - 21:31 */ public enum GameState { ongoing, // gra się toczy i jest elegancko, szczelanie etc paused, //wcisniety przycisk pauzy -> wyswietlenie przycisków coś al'a menu win, // wygrana defeat, // przegrana powermanager // power manager <SUF> }
3864_0
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// Kompilacja i użycie:
line_comment
pl
// Kompilacja i <SUF> // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, int ...
3864_1
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent <SUF> // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, int x, int y){// Algorytm rysujący kwadraty //...
3864_2
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// Użyjemy możliwości klasy bazowej Canvas
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości <SUF> public void rysuj_kwadraty (int n, int lg, int x, int y){/...
3864_3
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// Algorytm rysujący kwadraty
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
3864_4
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// n musi być parzyste
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
3864_5
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// pobierz kontekst graficzny
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
3864_6
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// Nadpisując metodę paint możemy samodzielnie coś narysować
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
3864_7
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// Narysujmy obiekt poczynajc od punktu (15, 15), tak, aby zajął większość obszaru okna
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
3864_8
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...
MattWroclaw/Struktury_Danych_All_in_one
Java/Java/Kwadraty.java
856
// tworzymy obiekt klasy Kwadraty w formie płótna do rysowania
line_comment
pl
// Kompilacja i użycie: // javac Kwadraty.java // java Kwadraty import java.awt.*; import javax.swing.*; public class Kwadraty extends Canvas { // prostokątny komponent pozwalający na rysowanie i przechwytywanie zdarzeń // Użyjemy możliwości klasy bazowej Canvas public void rysuj_kwadraty (int n, int lg, in...