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
3976_1
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Określenie środkowego indeksu.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_2
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Jeśli długość tablicy jest parzysta, nie ma elementu środkowego, są 'dwa'.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_3
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Sprawdzenie 'mniejszego' środka, ponieważ typ [int] ucina liczby po przecinku, np. 23/2 = 11.5, więc sprawdzamy indeks 11.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_4
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Sprawdzenie 'wiekszego' środka, ponieważ typ [int] ucina liczby po przecinku, np. 23/2 = 11.5, więc sprawdzamy indeks 12 (11+1).
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_5
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Jeśli długość tablicy jest nieparzysta, jest jeden element środkowy.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_6
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Sprawdzenie czy środkowy element jest szukanym.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_7
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Teraz sprawdzamy w której połówce znajduje się nasza szukana liczba.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_8
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Jeśli większa od środkowej liczby, to szukamy od środkowa do końca.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3976_9
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Jeśli mniejsza od środkowej liczby, to szukamy od początku do środka.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
3977_0
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// W Javie jak w każdym języku programowania można tworzyć tablicę
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie <SUF> // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica typu int o rozmiarze 5, tablica jak wszystko w Ja...
3977_1
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// do stworzenia tablicy używamy operatora [], tablica musi mieć określony
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia <SUF> // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica typu int o rozmiarze 5, tablica jak wszystko w Javi...
3977_2
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// rozmiar w momencie tworzenia
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w <SUF> int[] arr = new int[5]; // tablica typu int o r...
3977_3
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// tablica typu int o rozmiarze 5, tablica jak wszystko w Javie jest klasą,
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_4
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// więc wymaga stworzenia przy pomcy new
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_5
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// -> 0, dostęp do tablicy realizowany jest po przez operator []
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_6
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// System.out.println(arr[5]); // można wyjść z indeksem poza tablicę, ale wtedy zostanie rzucony wyjątek
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_7
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// tablicę można zainicjować w momencie deklaracji, wówczas nie podajemy
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_8
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// -> ?? zostanie wypisany adres (referencja) do objektu tablicy, nie zawartość!
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_9
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// długość tablicy dostępna jest jako właściwość length
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_10
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// Java ma klasę Arrays zmwierającą statyczne metody pomocnicze do operacji na tablicach
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_11
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// -> 2 , Java indeksuje wszystko od 0
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_14
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
// wszystkie metody można sprawdzić w dokumentacji https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Arrays.html
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3977_15
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
Przems0n711/JDK
lessons/2_arrays/JavaArrays.java
835
//Tablica może być dowolnego typu (obiekt lub prymityw)
line_comment
pl
import java.util.Arrays; public class JavaArrays { public static void main(String[] args) { // W Javie jak w każdym języku programowania można tworzyć tablicę // do stworzenia tablicy używamy operatora [], tablica musi mieć określony // rozmiar w momencie tworzenia int[] arr = new int[5]; // tablica...
3978_1
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Dlaczego importujemy sensory z sensor.sensors?
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_2
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Java ma niezbyt przemyślane działanie słowa kluczowego protected.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_3
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Jedynym sposobem aby protected działało podobnie jak w C++ jest umieszczenie
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_4
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// hierarchii klas używających składowych chronionych (czyli protected) osobno,
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_5
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// w osobnym pakiecie.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_6
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
/** * Klasa która, na zewnątrz, reprezentuje "cały program". Ponieważ jest to tylko * przykład, to jest ona uproszczona, bo zadowalamy się pojedynczym odczytem * z sensorów i wypisaniem wyników, nie mamy GUI (więc i LaF), nie potrzebujemy * obsługi wyjątków. */
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_7
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Czym jest sensors? To tablica zawierająca obiekty klasy Sensors,
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_8
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// każdy obiekt to jakiś sensor. Być może zamiast tablicy lepiej byłoby
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_9
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// użyć listy obiektów (lub innej struktury), ale w tym programie wystarczy
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_10
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// tablica. Skąd się bierze ta tablica? Patrząc na linijkę poniżej widzimy
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_11
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// że jest wynikiem wywołania createSensors() i na razie nie musimy wiedzieć
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_12
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
/** * Metoda main ma jeden cel - utworzyć i uruchomić instancję programu, * czyli utworzyć obiekt program i wywołać jego metodę run(). * * @param args standardowy parametr funkcji main, tablica z napisami * przekazywanymi przy wywołaniu programu jako argumenty * wywoł...
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_13
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Metoda run() konieczna dla klasy implementującej interfejs Runnable.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_14
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Moglibyśmy zamiast run() napisać execute() lub cokolwiek innego, klasa
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_15
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Program nie musi być Runnable. Ale skoro w Javie jest już predefiniowany
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_16
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// interfejs Runnable i skoro obiekty Runnable mogą być użyte między innymi
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_17
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// do tworzenia wątków, a środowiska IDE same generują szkielet metody run()
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_18
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// to jest w tym pewien sens.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_19
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Włączenie wszystkich sensorów. Ale... dlaczego sensors to sensory?
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_20
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// W samej metodzie run() nie ma definicji zmiennej sensors. Definicja
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_21
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// sensors jest w klasie Program jako prywatne finalne pole sensors
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_22
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// i to od razu zainicjalizowane wywołaniem statycznej createSensors().
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_23
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Dlatego sensors są osobno tworzone dla każdego obiektu klasy Program
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_24
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// i dlatego są, po utworzeniu, dostępne wszędzie w klasie Program.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_25
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Zlecenie pomiaru dla wszystkich sensorów. Zwykle realne sensory
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_26
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// wielkości fizycznych potrzebują trochę czasu na wykonanie pomiarów.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_27
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Zwykle nie działają tak szybko jak CPU (nawet takie jak ATMega328)
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_28
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// i dlatego lepiej nie czekać na wynik osobno dla każdego, tylko
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_29
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// zrobić to po zleceniu pomiarów wszystkim sensorom.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_30
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Zakładamy że jedna sekunda czekania wystarczy aby mieć dobre wyniki.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_31
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// W realnym programie czas opóźnienia musielibyśmy starannie wybrać,
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_32
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// sprawdzając karty katalogowe sensorów i być może metodą prób
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_33
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// i błędów, dodając margines bezpieczeństwa.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_34
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Skoro mamy dobre wyniki, to możemy odczytać dane z sensorów.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_35
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Skoro mamy odczytane wartości, to możemy wyłączyć sensory.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_36
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
/** * Co najmniej jednosekundowe opóźnienie działania wątku. */
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_37
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// @todo: Tu powinno być zagwarantowane opóźnienie trwające 1 sekundę.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_38
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Na razie nie ma go, aby nie gmatwać przykładu.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_39
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
/** * Tworzenie tablicy z sensorami. * * @return tablica obiektów Sensor zawierająca dokładnie tyle obiektów * ile wynosi rozmiar tablicy. */
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3978_40
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/Program.java
1,913
// Mamy utworzone sensory, tworzymy z nich tablicę.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3979_0
import model.Address; import java.util.ArrayList; import java.util.Comparator; import java.util.List; /** * Pomóż Mikołajowi w rozwożeniu prezentów! * Posortuj listę adresów dzieci po miastach alfabetycznie, * tak, żeby Mikołaj mógł wygodnie zaplanować plan podrózy. * Posortowaną listę adresów wypisz na ekranie. ...
w-polubiec/christmas-challenge
src/Day5_SortAddresses.java
762
/** * Pomóż Mikołajowi w rozwożeniu prezentów! * Posortuj listę adresów dzieci po miastach alfabetycznie, * tak, żeby Mikołaj mógł wygodnie zaplanować plan podrózy. * Posortowaną listę adresów wypisz na ekranie. * To bardzo proste zadanie! Więc dodatkowym plusem będzie * wykonanie sortowania w jednej linijce. :D ...
block_comment
pl
import model.Address; import java.util.ArrayList; import java.util.Comparator; import java.util.List; /** * Pomóż Mikołajowi w <SUF>*/ public class Day5_SortAddresses { public static void main(String[] args) { List<Address> addresses = prepareAddresses(); //TODO: sort addresses by city ...
3980_0
package Controller; public class ImageController { public void click(Image image){ // bardzo skomplikowana logika System.out.println("Wciśnięto obrazek więc kontroller wykonał skomplikowaną prace aby sobie poradzić z tym eventem"); image.setSize(image.getSize()+10); } }
DaDudek/Uwr
POO/L3/Zadanie 1/src/Controller/ImageController.java
96
// bardzo skomplikowana logika
line_comment
pl
package Controller; public class ImageController { public void click(Image image){ // bardzo skomplikowana <SUF> System.out.println("Wciśnięto obrazek więc kontroller wykonał skomplikowaną prace aby sobie poradzić z tym eventem"); image.setSize(image.getSize()+10); } }
3982_0
import java.util.ArrayList; public class Processor { protected ArrayList<Task> waitingTasks; protected ArrayList<Task> runningTasks; protected ArrayList<Task> doneTasks; protected ArrayList<Integer> loadHistory = new ArrayList<>(); public Processor(ArrayList<Task> tasks) { waitingTasks = t...
JanMaciuk/SO_Lab_5
src/Processor.java
528
// Puste zadanie które nigdy się nie wykona, więc nie wpłynie na symulacje. (odpowiednik null-a)
line_comment
pl
import java.util.ArrayList; public class Processor { protected ArrayList<Task> waitingTasks; protected ArrayList<Task> runningTasks; protected ArrayList<Task> doneTasks; protected ArrayList<Integer> loadHistory = new ArrayList<>(); public Processor(ArrayList<Task> tasks) { waitingTasks = t...
3982_1
import java.util.ArrayList; public class Processor { protected ArrayList<Task> waitingTasks; protected ArrayList<Task> runningTasks; protected ArrayList<Task> doneTasks; protected ArrayList<Integer> loadHistory = new ArrayList<>(); public Processor(ArrayList<Task> tasks) { waitingTasks = t...
JanMaciuk/SO_Lab_5
src/Processor.java
528
// Przywracam wszystkie zadania do oczekujących i resetuje ich czas wykonania.
line_comment
pl
import java.util.ArrayList; public class Processor { protected ArrayList<Task> waitingTasks; protected ArrayList<Task> runningTasks; protected ArrayList<Task> doneTasks; protected ArrayList<Integer> loadHistory = new ArrayList<>(); public Processor(ArrayList<Task> tasks) { waitingTasks = t...
3982_2
import java.util.ArrayList; public class Processor { protected ArrayList<Task> waitingTasks; protected ArrayList<Task> runningTasks; protected ArrayList<Task> doneTasks; protected ArrayList<Integer> loadHistory = new ArrayList<>(); public Processor(ArrayList<Task> tasks) { waitingTasks = t...
JanMaciuk/SO_Lab_5
src/Processor.java
528
// Zapisuje obecne obciążenie procesora.
line_comment
pl
import java.util.ArrayList; public class Processor { protected ArrayList<Task> waitingTasks; protected ArrayList<Task> runningTasks; protected ArrayList<Task> doneTasks; protected ArrayList<Integer> loadHistory = new ArrayList<>(); public Processor(ArrayList<Task> tasks) { waitingTasks = t...
3985_0
package zad1; import java.util.Scanner; public class zad14 { public static void main(String[] args) { Scanner klawiatura = new Scanner(System.in); System.out.println("Podaj wynik z 1 testu: "); double test1 = klawiatura.nextDouble(); System.out.println("Podaj wynik z 2 testu: ");...
kal0sz/agak1
src/zad1/zad14.java
307
/* . Napisz program, który wyświetla prośbę o wprowadzenie wyników z trzech testów. Program powinien wyświetlać wyniki z każdego testu, a także średnią. */
block_comment
pl
package zad1; import java.util.Scanner; public class zad14 { public static void main(String[] args) { Scanner klawiatura = new Scanner(System.in); System.out.println("Podaj wynik z 1 testu: "); double test1 = klawiatura.nextDouble(); System.out.println("Podaj wynik z 2 testu: ");...
3986_1
/******************************************************************************* * This file is part of the RozkladPKP project. * * RozkladPKP is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, ...
KrzysztofT/rozkladpkp-android
src/org/tyszecki/rozkladpkp/SerializableNameValuePair.java
477
/** * @author Krzysztof Tyszecki * Google nie chciało się update'ować tej biblioteki. Więc potrzebna kolejna klasa, tylko po to * żeby sobie serializację zrobić... */
block_comment
pl
/******************************************************************************* * This file is part of the RozkladPKP project. * * RozkladPKP is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, ...
3989_0
package Chapter18_TestNG; import org.testng.annotations.BeforeSuite; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class e_Annotations2 { @Test public void testCase4() { System.out.println("test folder 2: test case 4"); } /** * BeforeTest adnotacja...
bojan-wik/SeleniumWithJavaCourse
src/Chapter18_TestNG/e_Annotations2.java
453
/** * BeforeTest adnotacja sprawia, że dany test case jest uruchamiany przed jakimikolwiek innymi, jako pierwszy, * w obrębie danego test folderu (<test></test>) * Przydatne np. w przypadkach, kiedy przed właściwymi testami muszę wykonać jakieś operacje na środowisku testownym * np. wyczyszczenie ba...
block_comment
pl
package Chapter18_TestNG; import org.testng.annotations.BeforeSuite; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class e_Annotations2 { @Test public void testCase4() { System.out.println("test folder 2: test case 4"); } /** * BeforeTest adnotacja...
3989_1
package Chapter18_TestNG; import org.testng.annotations.BeforeSuite; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class e_Annotations2 { @Test public void testCase4() { System.out.println("test folder 2: test case 4"); } /** * BeforeTest adnotacja...
bojan-wik/SeleniumWithJavaCourse
src/Chapter18_TestNG/e_Annotations2.java
453
/** * Inna przydatna adnotacja to BeforeSuite. W pliku testng.xml node <suite></suite> jest najwyżej, nie ma nic nad nim. * Więc test case z adnotacją BeforeSuite będzie wykonywany bezwzględnie jako pierwszy, niezależnie od tego w jakim test folderze * się znajduje. * Analogicznie adnotacja AfterSui...
block_comment
pl
package Chapter18_TestNG; import org.testng.annotations.BeforeSuite; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class e_Annotations2 { @Test public void testCase4() { System.out.println("test folder 2: test case 4"); } /** * BeforeTest adnotacja...
3990_0
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
simplelogic2023szkolenie/JavaBasicDemo
src/Ch15_List/Ex5_Library.java
243
// titaj zadziała poprostu System.out.println(book)
line_comment
pl
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
3990_1
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
simplelogic2023szkolenie/JavaBasicDemo
src/Ch15_List/Ex5_Library.java
243
// ponieważ zrobiliśmy @override na toString()
line_comment
pl
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
3990_2
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
simplelogic2023szkolenie/JavaBasicDemo
src/Ch15_List/Ex5_Library.java
243
// więc java wie jak zamienić obiekt klasy Book na
line_comment
pl
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
3990_3
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
simplelogic2023szkolenie/JavaBasicDemo
src/Ch15_List/Ex5_Library.java
243
// reprezentatywny kawałek tekstu
line_comment
pl
package Ch15_List; import java.util.ArrayList; import java.util.List; public class Ex5_Library { public List<Ex5_Book> booksCollection = new ArrayList<>(); public void addBook(Ex5_Book book) { System.out.println("dodaje książke do bibiloteki o nazwie: " + book.title); booksCollection.add(book...
3992_0
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
/** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */
block_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących <SUF>*/ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiście k++ oznacza zwiększenie wartości k o jeden. // ...
3992_1
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Pętla for jest trywialna, taka sama jak w C++ i C#.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for <SUF> // Oczywiście k++ oznacza zwiększenie wartości...
3992_2
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Oczywiście k++ oznacza zwiększenie wartości k o jeden.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_3
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Wartość zmiennej kontrolnej wzrasta o +2 (patrz instrukcja k += 2),
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_4
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// a potem dodając do niej +100 przekraczamy próg przy którym pętla
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_5
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// ma zostać przerwana. Takie działanie pętli for jest typowe dla
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_6
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// C++ i Javy. W Pascalu i Pythonie pętla for działa inaczej: resetuje
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_7
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// wartość zmiennej kontrolnej.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_8
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Pętla for może dostarczać kolejnych elementów kolekcji takich jak listy,
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_9
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// zbiory, mapy (odwzorowania klucz-wartość) itp. a także zwykłe tablice.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_10
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Pętla for może mieć więcej niż jedną "zmienną kontrolną".
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_11
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Aczkolwiek pętla for-all (for z kolekcją elementów) jest bardzo
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_12
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// naturalna, to można używać także indeksów tak jak w przykładzie
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_13
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Można też użyć iteratorów - obiektów specjalnie służących
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_14
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Instrukcja break przerywa wykonanie pętli.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_15
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Java nie ma goto, ale ma instrukcję break z etykietą.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_16
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Można więc przerwać kilka zagnieżdżonych pętli na raz,
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_17
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// choć nie jest to szczególnie dobre rozwiązane.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_18
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Komplementarna do break jest instukcja continue. Nie przerywa ona
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_19
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// pętli, a tylko pomija dalsze wykonywanie bieżącej iteracji.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_20
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Lepiej jednak to samo zapisać bez continue tak jak poniżej.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_21
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Pętla while działa w dość oczywisty sposób, poniżej pokazane jest
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_22
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// jak można jej użyć do oszacowania wartości "maszynowego epsilona".
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
3992_23
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
slawomirmarczynski/java
flowcontrol/src/example/flowcontrol/LoopsDemo.java
1,477
// Jest instrukcja do-while, ale przydaje się rzadziej niż proste while.
line_comment
pl
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...