Promóció
Tanulás
Tanfolyamok
Feladatok
Felmérések & Kvízek
Játékok
Súgó
Ütemterv
Közösség
Felhasználók
Fórum
Csevegés
Cikkek
Sikertörténetek
Tevékenység
Vélemények
Előfizetések
Világos téma
Segítség a feladatokhoz
Vélemények
Rólunk
Kezdés
Kezdje el a tanulást
Kezdj el tanulni most
Összes kérdés
Kérdés feltevése
Java
Összes küldetés
Összes szint
Bármely állapot
Feladatokkal kapcsolatos kérdések
Aktuális
Hipo7298
Szint 26
Kaposvar
Kérdés a feladatról
Refactoring methods
Java Multithreading
,
Szint 1
,
Lecke 10
Tárgyalás alatt
Why don't need the finally{} block when I use try-with-resource?
Finally block could contain some special things, eg. with incidental variable value changing. But I can't declare variable outside try() block, and give them values inside - so the finally block has chance to see them. When I do a real job, I had to write adapter class to streams, so I can override
2024. 09. 28.
281
megtekintések
2
hozzászólások
7
Hipo7298
Szint 26
Kaposvar
Kérdés a feladatról
Tracking changes
Java Core
,
Szint 9
,
Lecke 11
Megoldva
Please help - Streams doesn't closed?
The code is a mess, but I close the last opened stream at line44, before the mess starts. Validator says The file input streams (FileReader) must be closed. Mentor message: Be sure that the file input stream for the file is closed.
2024. 09. 15.
180
megtekintések
1
hozzászólás
0
Hipo7298
Szint 26
Kaposvar
Kérdés a feladatról
The early bird gets the worm
Java Core
,
Szint 6
,
Lecke 13
Megoldva
Endless program, but pass the validation?
I work eg. 2 hours, because the program doesn't finished natural way, just if I shut it down (exitcode 130) or with error message if I wrote in the console 2 more strings. I think when one of the threads read the last string, and increase the atomic readStringCount variable equal to count, the other
2024. 09. 01.
187
megtekintések
0
hozzászólások
0
Hipo7298
Szint 26
Kaposvar
Kérdés a feladatról
Counting words
Java Core
,
Szint 9
,
Lecke 5
Megoldva
It's a simple code. Why don't pass?
Mentor message: Determine why the program found more instances of the word "world" than exist in the file.
2024. 09. 11.
167
megtekintések
0
hozzászólások
0
Hipo7298
Szint 26
Kaposvar
Kérdés a feladatról
CRUD 2
Java Core
,
Szint 7
,
Lecke 10
Új
Is there a global Thread.join() method? Like an octopus...
So I want to use some thread, after all we're multithreading. The code in the main's try{} block sometimes run properly, but sometimes the main's thread faster than myThread, and don't add the last element to allPeople list (i tried several times in the test block). Is there any solution to wait al
2024. 09. 02.
205
megtekintések
0
hozzászólások
0
Please enable JavaScript to continue using this application.