Promocja
Nauka
Kursy
Zadania
Ankiety & quizy
Gry
Pomoc
Harmonogram
Społeczność
Użytkownicy
Forum
Czat
Artykuły
Historie sukcesu
Aktywność
Opinie
Subskrypcje
Jasny motyw
Pomoc w zadaniach
Opinie
O nas
Start
Rozpocznij naukę
Rozpocznij naukę teraz
Wszystkie pytania
Zadaj pytanie
Java 25
Wszystkie zadania
Wszystkie poziomy
Dowolny status
Pytania o zadania
Gorące
Ciouaz
Poziom 22
Pytanie o zadanie
Metody zsynchronizowane
Java Core
,
Poziom 7
,
Lekcja 10
W trakcie dyskusji
Why such solution?
Why this is correct solution? I did this task by "try and error" method and I don't understand why this solution is correct :( Why should I put "synchronized" in this methods? I cannot add my code, because I finished the task, so Imagine correct solution to this task....
3.07.2023
423
wyświetlenia
2
komentarze
0
Tomek
Poziom 1
Poland
Pytanie o zadanie
Wynik pliku sekwencyjnego
Java Core
,
Poziom 6
,
Lekcja 13
Rozwiązane
How to solve this problem?
I started from the first solution, where the getFileContents function got the whole logic of reading content from file. But of course something was wrong. So as in one of the problem solution somebody sugests I move the full logic of the getFileContent into the run method. But after this the code is
9.07.2023
278
wyświetlenia
2
komentarze
0
Ciouaz
Poziom 22
Pytanie o zadanie
Kto rano wstaje, temu Pan Bóg daje
Java Core
,
Poziom 6
,
Lekcja 13
W trakcie dyskusji
where is bug?
What's wrong? My answer i exactly the same as in the example from codegym :| concole throws: java.io.IOException: Stream closed at java.io.BufferedReader.ensureOpen(BufferedReader.java:122) at java.io.BufferedReader.readLine(BufferedReader.java:317) at java.io.BufferedReader.readLine(BufferedRea
1.07.2023
489
wyświetlenia
3
komentarze
0
Ciouaz
Poziom 22
Pytanie o zadanie
Odliczanie na wyścigach
Java Core
,
Poziom 6
,
Lekcja 10
W trakcie dyskusji
Whats wrong?
Whats wrong with my solution?
28.06.2023
255
wyświetlenia
3
komentarze
0
Przemysław
Poziom 7
Pytanie o zadanie
Najmniejsza z trzech liczb
Java Syntax
,
Poziom 2
,
Lekcja 8
W trakcie dyskusji
dlaczego jest źle
nie rozumiem dlaczego to jest źle, wyjaśni mi ktoś?
28.06.2023
324
wyświetlenia
1
komentarz
0
Anonymous #11274698
Poziom 8
Gorzow Wielkopolski
Pytanie o zadanie
Notes na nowe idee
Java Syntax
,
Poziom 6
,
Lekcja 11
W trakcie dyskusji
Brak idei
Cześć z jakiegoś powodu weryfikacja nie akceptuje zadania. Trzeba tu coś zrobić z polem 9 "printIdea(new Idea());"?
23.06.2023
274
wyświetlenia
4
komentarze
0
brajankw
Poziom 25
Poland
Pytanie o zadanie
Build a WHERE query
Java Multithreading
,
Poziom 2
,
Lekcja 9
W trakcie dyskusji
What is the problem here?
Could someone explain it to me?
22.05.2023
289
wyświetlenia
1
komentarz
0
Weronika Stępień
Poziom 14
World
Pytanie o zadanie
You can't have too much of a good thing
Java Syntax
,
Poziom 4
,
Lekcja 10
Rozwiązane
Czemu nie chce przejść? Jak dla mnie wszystko jest okej.
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String text = reader.readLine(); int N = Integer.parseInt(reader.readLine()); int count = 0;
16.05.2023
286
wyświetlenia
2
komentarze
0
Lukasz
Poziom 7
Czestochowa
Pytanie o zadanie
Mów zwięźle
Java Syntax
,
Poziom 7
,
Lekcja 6
W trakcie dyskusji
Witam, czy może ktoś mi pomóc z tym zadaniem.
Wcześniejsze zadanie zrobiłem analogicznie ze znajdowaniem max ciągu i działa dobrze a to nie.
11.05.2023
354
wyświetlenia
5
komentarze
0
PEgaz
Poziom 40
Katowice
Pytanie o zadanie
Nić Ariadny
Java Core
,
Poziom 6
,
Lekcja 13
W trakcie dyskusji
Thread4 problem.
Hi, I wonder why I have an error in Thread4 - that I haven't implemented interface Message. Implementing an interface means implementing all its methods ... there's only one, which I seem to have implemented ... so ... I have no idea. Please help.
18.07.2020
925
wyświetlenia
3
komentarze
0
Anonymous #11274698
Poziom 8
Gorzow Wielkopolski
Pytanie o zadanie
Dzień tygodnia
Java Syntax
,
Poziom 4
,
Lekcja 4
W trakcie dyskusji
Dlaczego nie działa?
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); String liczba = bufferedReader.readLine(); int Cyfra = Integer.parseInt(liczba); if (Cyfra==1){ System.out.println("Poniedziałek"); }else if (Cyfra==2){
18.04.2023
341
wyświetlenia
2
komentarze
0
Tomasz Kudła
Poziom 3
Poland
Rozwiązane
Dlaczego nie pojawiają mi sie przyciski IntelliJ IDEA po zainstalowaniu wtyczki?
WItam Mam taki problem, dotarłem do poziomu 3, lekcji 2, w której trzeba połączyć codegym z IntelliJ IDEA. Udało mi się normalnie pobrać wtyczkę, ale nie pojawiła mi się w prawym górnym rogu grupa sześciu nowych przycisków, które miały mi się pokazać po zainstalowaniu tej wtyczki. Czy mógłby mi ktoś
10.04.2023
317
wyświetlenia
2
komentarze
0
Wojciech Szytenhelm
Poziom 4
Pytanie o zadanie
Nasz pierwszy konwerter!
Java Syntax
,
Poziom 2
,
Lekcja 2
W trakcie dyskusji
Przepraszam bo nie rozumiem dlaczego nie działa. Czy może ktoś pomóc?
Myślę, że wszystko dobrze, ale program tego nie przelicza. Dlaczego?
7.04.2023
426
wyświetlenia
1
komentarz
0
Emil
Poziom 6
Pytanie o zadanie
You can't have too much of a good thing
Java Syntax
,
Poziom 4
,
Lekcja 10
W trakcie dyskusji
potrzebuje podpowiedzi, bo nie mam pojęcia jak to zrobic
.
14.03.2023
301
wyświetlenia
1
komentarz
0
Grzegorz Szuderski
Poziom 14
Pytanie o zadanie
Najdłuższa sekwencja
Java Syntax
,
Poziom 8
,
Lekcja 6
Rozwiązane
Działa ale: Program powinien dodawać do kolekcji 10 liczb zgodnie z warunkami.
package pl.codegym.task.task08.task0812; import java.io.*; import java.util.ArrayList; /* Najdłuższa sekwencja */ public class Solution { public static void main(String[] args) throws IOException { //tutaj wpisz swój kod BufferedReader reader = new BufferedReader(new InputSt
31.03.2023
503
wyświetlenia
2
komentarze
0
Mateusz Świniarski
Poziom 20
Poland
Pytanie o zadanie
Wybieranie numerów
Java Core
,
Poziom 9
,
Lekcja 5
Rozwiązane
BufferedWriter is not recognized
Hello, Could you help me to find out why my BufferWriter is not recognized and not closed?
28.03.2023
379
wyświetlenia
2
komentarze
0
Magda
Poziom 10
Poland
Pytanie o zadanie
Większa niż 10? Wcale do nas nie pasujesz!
Java Syntax
,
Poziom 8
,
Lekcja 8
W trakcie dyskusji
why do we have to create a copy of the set in the second method?
15.02.2023
334
wyświetlenia
3
komentarze
0
Pawulonik_5mg
Poziom 13
Poznań
Pytanie o zadanie
Liczba liter
Java Syntax
,
Poziom 10
,
Lekcja 11
W trakcie dyskusji
Where seems to be the problem officer?
-
28.03.2023
304
wyświetlenia
1
komentarz
0
Ola
Poziom 7
Huai Khwang
Pytanie o zadanie
Średnia arytmetyczna
Java Syntax
,
Poziom 5
,
Lekcja 5
W trakcie dyskusji
What's wrong in my code?
Could someone explain me why the error occurs when I run my code ? (edit : line 16 is of course: while (wprowadzonaLiczba != -1). (pl/codegym/task/task05/task0507/Solution.java:9: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
27.03.2023
502
wyświetlenia
3
komentarze
0
Magda
Poziom 10
Poland
Pytanie o zadanie
Samogłoski i spółgłoski
Java Syntax
,
Poziom 9
,
Lekcja 11
W trakcie dyskusji
I have no idea what's wrong
Could you help me, please?
23.03.2023
352
wyświetlenia
1
komentarz
0
Magda
Poziom 10
Poland
Pytanie o zadanie
Zadanie z algorytmami
Java Syntax
,
Poziom 9
,
Lekcja 11
W trakcie dyskusji
illegal start of expression, line 57
Could you tell me what's wrong? It works on IntelliJ.
21.03.2023
702
wyświetlenia
5
komentarze
0
Ola
Poziom 7
Huai Khwang
Pytanie o zadanie
Jakiś taki przeciętny
Java Syntax
,
Poziom 4
,
Lekcja 16
W trakcie dyskusji
Some problems with the solution
Hey! Could someone have a look at my solution and help me figure out what is wrong ? Program works but not correctly, third step of the requirements fails :|
21.03.2023
350
wyświetlenia
2
komentarze
0
Anonymous #11274698
Poziom 8
Gorzow Wielkopolski
Pytanie o zadanie
Masz parę?
Java Syntax
,
Poziom 4
,
Lekcja 4
W trakcie dyskusji
O co chodzi
Nie rozumiem kompletnie tych zadań. Program wyświetla odpowiednie liczby na ekranie więc w czym problem?
17.03.2023
360
wyświetlenia
2
komentarze
0
Emil
Poziom 6
Pytanie o zadanie
Zaimplementuj metodę walka
Java Syntax
,
Poziom 5
,
Lekcja 5
W trakcie dyskusji
prosze o pomoc;)
nie mam pojecia jak napisac kod zeby zaliczylo mi ostatni podpunkt. prosze o wskazowke bez gotowca;)
15.03.2023
399
wyświetlenia
2
komentarze
0
Mateusz Świniarski
Poziom 20
Poland
Pytanie o zadanie
Ferma drobiu
Java Core
,
Poziom 4
,
Lekcja 6
W trakcie dyskusji
please check my code
Could you please check my code? I don't know why even first three test don't pass? I think that my code is correct
16.03.2023
441
wyświetlenia
2
komentarze
0
Mateusz
Poziom 1
Torun
Pytanie o zadanie
Spis ludności
Java Syntax
,
Poziom 8
,
Lekcja 8
Rozwiązane
HashMap
Hi, I have one question I have to count names and surnames -> name is value of HashMap and surname is key of HashMap so they (surnames) have never will be the same because the key is always different. (I readed this on course ) I'm not understand this task, Can somebody explain me why is it like
9.10.2021
655
wyświetlenia
2
komentarze
1
Magda
Poziom 10
Poland
Pytanie o zadanie
Obsługiwanie wyjątków typu unchecked
Java Syntax
,
Poziom 9
,
Lekcja 8
W trakcie dyskusji
Although the task is passed, the same code doesn't work in IntelliJ. It shows that block try is wrong. I send my code in the comments
8.03.2023
686
wyświetlenia
11
komentarze
0
Emil
Poziom 6
Pytanie o zadanie
Łańcuszek
Java Syntax
,
Poziom 4
,
Lekcja 13
W trakcie dyskusji
dlaczego nie chce mi zaliczyc tego zadania?
mam wrazenie ze wszystko jest zrobione dobrze, lecz nie zalicza mi trzeciego podpunktu, choć wyswietla 10 razy napis.
14.03.2023
284
wyświetlenia
1
komentarz
0
Emil
Poziom 6
Pytanie o zadanie
Jola czy Jola?
Java Syntax
,
Poziom 4
,
Lekcja 6
Rozwiązane
potrzebuje podpowiedzi
w drugim warunku ,jak napisac kod, zeby program sprawdzil czy imiona mają tyle samo liter?
12.03.2023
326
wyświetlenia
2
komentarze
0
Emil
Poziom 6
Pytanie o zadanie
Masz parę?
Java Syntax
,
Poziom 4
,
Lekcja 4
Rozwiązane
nie działa mi trzeci punkt, ktos moze wytlumaczyc?
oglnie na Intellij IDEA sprawdzilem kazda mozliwosc i jak są dwie liczby takie same to je wyswietla, a tutaj nie zalicza tego punktu. Dlaczego?
10.03.2023
336
wyświetlenia
4
komentarze
0
Pokaż więcej
1
...
5
6
7
8
9
...
59
Please enable JavaScript to continue using this application.