promóció
Tanulás
Tanfolyamok
Feladatok
Felmérések és kvízek
Játékok
Segítség
Menetrend
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 feladatokban
Vélemények
Rólunk
Rajt
Kezdje el a tanulást
Kezdje el a tanulást most
Minden kérdés
Tegyen fel egy kérdést
Minden küldetés
Minden szint
Bármilyen állapot
Kérdések a feladatokkal kapcsolatban
Forró
Hipo7298
Szint
Kaposvar
Kérdés a feladattal kapcsolatban
Refactoring methods
Java Multithreading
,
Szint
,
Lecke
Megbeszélé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
28.09.2024
79
nézetek
2
Hozzászólások
2
Hipo7298
Szint
Kaposvar
Kérdés a feladattal kapcsolatban
Tracking changes
Java Core
,
Szint
,
Lecke
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.
15.09.2024
61
nézetek
1
megjegyzés
0
Hipo7298
Szint
Kaposvar
Kérdés a feladattal kapcsolatban
The early bird gets the worm
Java Core
,
Szint
,
Lecke
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
01.09.2024
71
nézetek
0
Hozzászólások
0
Hipo7298
Szint
Kaposvar
Kérdés a feladattal kapcsolatban
Counting words
Java Core
,
Szint
,
Lecke
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.
11.09.2024
67
nézetek
0
Hozzászólások
0
Hipo7298
Szint
Kaposvar
Kérdés a feladattal kapcsolatban
CRUD 2
Java Core
,
Szint
,
Lecke
Ú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
02.09.2024
91
nézetek
0
Hozzászólások
0
Please enable JavaScript to continue using this application.