quiz
quiz copied to clipboard
Refactor the code to make it look more object-oriented and maintainable
- I tidied up the unneeded member variable, which eliminated the need for synchronized specifiers - These operations are probably best done atomically, so that's how I set it up,...
Added some refactoring to the code like try...catch...finally blocks …
- Changed variable names to be more descriptive - Instance variables should be more explicit (use of this.) - Use StringBuilder for improved performance in loops. - Changed HEX value...
solve the problem in #360
These streams are created for single task. `final` them to make it clear and safer.
- Fixed getContent to return a String instead of StringBuffer - Changed input variable to be more verbose - InputStream is now closed after finishing file reading - Changed HEX...
Removing comments and redundancy of code for cleanliness as well as auto formatting code for readability. Next steps would be to rename the hexadecimal number and add unit tests for...
Looks like a real fun, just wanted to participate.
Remade the class methods.