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
Krateusz Majewski
Poziom 31
Poland
Pytanie o zadanie
Głęboka i czysta miłość
Java Syntax
,
Poziom 3
,
Lekcja 8
Rozwiązane
What's wrong?
When compiling I get: pl/codegym/task/task03/task0322/Solution.java:19: error: unclosed string literal System.out.println(imie1 + " + " + imie2 + " + " + imie3 + " = Czysta miłość. Ooo la la!"");
13.10.2021
391
wyświetlenia
1
komentarz
0
Piotr Lelonek
Poziom 24
Warsaw
Pytanie o zadanie
Najrzadziej występujące bajty
Java Core
,
Poziom 8
,
Lekcja 3
W trakcie dyskusji
Gdzie popełniam błąd?
Jeżeli komuś uda się to zwięźle i prosto wytłumaczyć, będę bardzo wdzięczny :)
18.10.2020
573
wyświetlenia
1
komentarz
0
Marek Foto
Poziom 20
Poland
Pytanie o zadanie
Zadanie z algorytmami
Java Syntax
,
Poziom 9
,
Lekcja 11
W trakcie dyskusji
I don't know what the problem is?
My code works without any problem ... but I keep getting error messages. Pleas help. Please copy my code to Intelijii Idea and see that it works.
13.10.2021
412
wyświetlenia
2
komentarze
0
lukascywin
Poziom 9
Poland
Pytanie o zadanie
Jakiś taki przeciętny
Java Syntax
,
Poziom 4
,
Lekcja 16
W trakcie dyskusji
I don't know what is wrong
This is my code and I have information that this one is incorrect (third requirement). In my opinion it work correct. Any suggestions? Thanks for help.
10.10.2021
464
wyświetlenia
2
komentarze
0
Kubalahit
Poziom 16
Gdańsk
Pytanie o zadanie
Sprawdzanie kolejności
Java Syntax
,
Poziom 7
,
Lekcja 9
Rozwiązane
Problem with 4th requirement
Hey, can anyone tell me why my solution can't pass 4th requirement? Thanks for help.
10.10.2021
522
wyświetlenia
2
komentarze
0
Enid
Poziom 12
Lodz
Pytanie o zadanie
Jakiś taki przeciętny
Java Syntax
,
Poziom 4
,
Lekcja 16
W trakcie dyskusji
Isn't it quite a Spaghetti code?
I've done it but I have a feeling it's quite a spaghetti code ;) To anyone who also solved it: I wonder how many lines your solution had in intelliJ. Mine had 48 lines (including all the stuff overwritten by CodeGym plugin and solely one space line in the code itself :O) Is there any smarter way?
29.12.2019
2118
wyświetlenia
10
komentarze
0
Mateusz
Poziom 1
Torun
Pytanie o zadanie
HashMap kotów
Java Syntax
,
Poziom 8
,
Lekcja 3
Rozwiązane
Question
Hi, Can somebody explain me these commands for (String name : koty) { mapa.put(name, new Kot(name)); } I used partly the solved task and I don't know what it doing. I mean why I must add "name, new Kot(name)" and what they mean. I would appreciate showing you the cor
7.10.2021
677
wyświetlenia
5
komentarze
0
Paweł Knapik
Poziom 18
Lipinki
Pytanie o zadanie
Mów zwięźle
Java Syntax
,
Poziom 7
,
Lekcja 6
W trakcie dyskusji
Działa a jednak nie .
Program działa prawidłowo ale zadania nie zalicza. Why ?
7.10.2021
456
wyświetlenia
3
komentarze
0
Ani
Poziom 2
Poland
W trakcie dyskusji
I don't understand. Nie rozumiem
I don't understand end 1 level and 2 level. Can you help me? Nie rozumiem końca 1 poziomu i 2. Pomożecie mi?
6.10.2021
536
wyświetlenia
2
komentarze
0
Daniel
Poziom 16
Lodz
Pytanie o zadanie
Najmniejsza i największa
Java Core
,
Poziom 1
,
Lekcja 11
W trakcie dyskusji
can someone tell me what is...?
Hi, Can you tell why this class has somethig like this? was it already in any topic and i havent seen it? --- public static class Pair
5.10.2021
622
wyświetlenia
2
komentarze
0
Daniel
Poziom 16
Lodz
Pytanie o zadanie
OOP: przeciążanie metod
Java Core
,
Poziom 5
,
Lekcja 4
W trakcie dyskusji
h e l p :)
Can't find the last one. Should i try to do something with last method argument?
5.10.2021
496
wyświetlenia
3
komentarze
0
Dominik Piwowarczyk
Poziom 2
Poland
Pytanie o zadanie
Amigo jest bardzo sprytny
Java Syntax
,
Poziom 0
,
Lekcja 2
W trakcie dyskusji
macie u mnie działa
package pl.codegym.task.task01.task0142; /* Amigo jest bardzo sprytny */ public class Solution { public static void main(String[] args) { System.out.println ("Amigo jest bardzo sprytny"); } }
5.10.2021
483
wyświetlenia
0
komentarze
0
Robert
Poziom 20
Debica
Pytanie o zadanie
Walki robotów
Java Core
,
Poziom 3
,
Lekcja 11
Rozwiązane
'pl.codegym.task.task13.task1328.Solution.this' cannot be referenced from a static context: 9 and 10
Hello, how to fix errors in these lines? They broke my validation.
28.09.2021
644
wyświetlenia
9
komentarze
0
Przemek Z.
Poziom 19
Toruń
Pytanie o zadanie
Maksymalna liczba bajtów
Java Core
,
Poziom 8
,
Lekcja 3
Rozwiązane
Dlaczego mimo zamknięcia fileInputStream nie jest spełniony warunek zadania?
Wydaje mi się że jest poprawnie, ale mogę się mylić.
27.09.2021
714
wyświetlenia
9
komentarze
0
Artur
Poziom 7
Poland
Pytanie o zadanie
Statyczne koty
Java Syntax
,
Poziom 6
,
Lekcja 11
Rozwiązane
What is wrong?
Why doesn't this code work? Everytime i make a new object, constructor shud add this object to arrayList? Right? So why program tells me "Main method does not add all objects to your list"?
30.09.2021
457
wyświetlenia
2
komentarze
0
Piotr Gos
Poziom 5
Polska
Pytanie o zadanie
Skąd pochodzi Osoba?
Java Syntax
,
Poziom 2
,
Lekcja 2
W trakcie dyskusji
co ja mam z tym zrobić?
W metodzie main utwórz obiekt Osoba i referencję do niego przypisz od razu do zmiennej osoba.
17.09.2021
479
wyświetlenia
2
komentarze
0
Mateusz
Poziom 1
Torun
Pytanie o zadanie
Inicjalizowanie kotów
Java Syntax
,
Poziom 5
,
Lekcja 7
Rozwiązane
String Value
Hi, I have question Why if I add this, it does not passes the tests (see this.kolor) : public void inicjalizuj(String imie, int wiek){ this.imie = imie; this.wiek = wiek; this.waga=10; this.kolor = null; } and this is correct: public void inicjaliz
24.09.2021
1103
wyświetlenia
7
komentarze
0
Daniel
Poziom 16
Lodz
Pytanie o zadanie
Mosty
Java Core
,
Poziom 4
,
Lekcja 8
W trakcie dyskusji
I need hint, please
i would like to aske you what is wrong with this code? thanks for answers
26.09.2021
463
wyświetlenia
3
komentarze
0
Szpytma
Poziom 16
London
Pytanie o zadanie
Rzepka
Java Core
,
Poziom 3
,
Lekcja 11
W trakcie dyskusji
What is wrong with that solution?
What is wrong with that solution?
16.03.2020
1360
wyświetlenia
7
komentarze
0
Robert
Poziom 20
Debica
Pytanie o zadanie
Zaimplementuj metodę walka
Java Syntax
,
Poziom 5
,
Lekcja 5
Rozwiązane
Dlaczego wszyscy dopisują kod do "public class Kot" i "public static void main(String[] args)"
Dlaczego większość osób tak robi jak na obrazku? W niektórych wcześniejszych zadaniach jest wskazane, że trzeba tutaj i tam wpisać kod, a w tym zadaniu większość osób jedzie jak im pasuje, pomimo iż jest napisane, że mamy działać w "public boolean walka(Kot innyKot)" 😕 Czy muszę stworzyć obiekty k
3.10.2020
948
wyświetlenia
4
komentarze
1
Piotr Duda
Poziom 3
Wrocław
W trakcie dyskusji
why task isn't finished
public class Solution { public static void main(String[] args) { System.out.println(konwertujCelsjuszaNaFahrenheita(41)); } public static double konwertujCelsjuszaNaFahrenheita(int celsjusz) { double tf = 9 /5.0 * 41 + 32; return tf; the task isn
20.09.2021
346
wyświetlenia
1
komentarz
0
Robert
Poziom 20
Debica
Pytanie o zadanie
Sortowanie liczb parzystych z pliku
Java Core
,
Poziom 3
,
Lekcja 11
Rozwiązane
Why i get only one line from file?
Hello, 😫 I use the same numbers in my test file from example. I am checking filling the ArrayList line.32 Why I get only one line from file? When I skip the BufferedReader, and use only FileReader and do little changes, I get the result in shape stream of numbers, well beyond the range in the e
19.09.2021
535
wyświetlenia
2
komentarze
0
Karol
Poziom 22
Przemyśl
Pytanie o zadanie
Metoda w try-catch
Java Syntax
,
Poziom 9
,
Lekcja 11
Rozwiązane
Co poszło nie tak?
Chyba się trochę pogubiłem w kodzie ale żadne modyfikacje mu nie pomagały :/
8.04.2020
1645
wyświetlenia
9
komentarze
0
Mateusz
Poziom 15
Lublin
Pytanie o zadanie
NWD
Java Core
,
Poziom 4
,
Lekcja 8
W trakcie dyskusji
Its really wierd
Hi guys, Program throws good error message when i write String for example, It prints proper numbers but says "The program ran too long and was closed!" when try to verify. Any suggestions?
14.09.2021
475
wyświetlenia
2
komentarze
0
Mateusz
Poziom 15
Lublin
Pytanie o zadanie
Ferma drobiu
Java Core
,
Poziom 4
,
Lekcja 6
W trakcie dyskusji
Im tired of this description
Hey guys, I tried to move spaces, dots and all the stuff and still have an error, please advice me about what is wrong in that mass that i call "my code" :D Thanks in advance.
20.08.2021
470
wyświetlenia
2
komentarze
0
Robert
Poziom 20
Debica
Pytanie o zadanie
Wczytywanie pliku
Java Core
,
Poziom 3
,
Lekcja 11
Rozwiązane
Not enough lines displayed.
My file: "c:/note.txt", has 3 lines: test odczytywania pliku test odczytywania pliku test odczytywania pliku But my output is: c:/note.txt test odczytywania pliku null Below, this commented code work fine but didn't pass the task, and I don't know why. It is a modified copy of example from cra
11.09.2021
885
wyświetlenia
2
komentarze
0
nudiez
Poziom 6
Poland
Pytanie o zadanie
Wymiana walut
Java Syntax
,
Poziom 3
,
Lekcja 3
W trakcie dyskusji
Pomógłby ktoś?
package pl.codegym.task.task03.task0303; /* Wymiana walut */ public class Solution { public static void main(String[] args) { konwertujEurNaUsd(10,1.18); konwertujEurNaUsd(5,1.18); System.out.println(dolary);//tutaj wpisz swój kod } public static double konwer
7.09.2021
606
wyświetlenia
3
komentarze
0
Robert
Poziom 20
Debica
Pytanie o zadanie
Błędy w initializeIdAndName
Java Core
,
Poziom 3
,
Lekcja 2
Rozwiązane
I am feel lost: req. 4) The initializeIdAndName method must set the User object id and definition fields according to the arguments passed, and then return the object.
Metoda initializeIdAndName musi ustawiać id obiektu User i pola definicji zgodnie z przekazanymi argumentami, a następnie zwracać obiekt. The initializeIdAndName method must set the User object id and definition fields according to the arguments passed, and then return the object. Output: Imię uży
6.09.2021
775
wyświetlenia
6
komentarze
0
Robert
Poziom 20
Debica
Pytanie o zadanie
Goście
Java Core
,
Poziom 2
,
Lekcja 12
Rozwiązane
I don't even know what to call what went on here.
Full code form task link. Hello, Why this didn't work? public static String getObjectType(Object o) { //tutaj wpisz swój kod if (o instanceof Cat) { return "Cat"; } else if (o instanceof Tiger) { return "Tiger"; } else if (o in
4.09.2021
466
wyświetlenia
1
komentarz
0
daro180
Poziom 31
Pytanie o zadanie
Ruszamy na cały kraj
Java Syntax
,
Poziom 8
,
Lekcja 11
W trakcie dyskusji
What's wrong?
package pl.codegym.task.task08.task0823; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Ruszamy na cały kraj */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new Buffered
23.05.2021
556
wyświetlenia
3
komentarze
0
Pokaż więcej
1
...
19
20
21
22
23
...
59
Please enable JavaScript to continue using this application.