How should verification looks? Could someone send their code? It's not required to pass the task, but I don't have a clue how to do it and check if it's done correctly.
Verification
Dyskutowane
Komentarze (3)
- Popularne
- Najnowsze
- Najstarsze
Musisz się zalogować, aby dodać komentarz
Krateusz Majewski
1 grudnia 2021, 14:56
Yes, I understand this part, but in polish version of this task there's additional part that looks like this:
Wpisz samodzielnie kod weryfikacyjny w metodzie main:
1) utwórz plik, otwórz strumień wejściowy i strumień wyjścowy;
2) utwórz instancję klasy Solution (savedObject);
3) zapisz savedObject do strumienia wyjściowego (upewnij się, że naprawdę tam są);
4) utwórz kolejną instancję klasy Solution z innym argumentem;
5) załaduj obiekt ze strumienia wejściowego (loadedObject);
6) sprawdź, czy savedObject.string jest taki sam jak loadedObject.string;
7) obsłuż wyjątki.
And I don't know how to do it ☝☝☝☝☝
0
Lisa
1 grudnia 2021, 15:16przydatny
ahh, that part, uahhahaha 😜🤪, I did it, wahhh 😎
eg.: (but you shouldn't compare string and instead overwrite hashCode and equals of the Solution class and then compare the two objects)
+1
Lisa
1 grudnia 2021, 14:52
0