Java refactoring practice

how to run those projects?

  • javac -encoding utf-8 [file name].java
  • java [file name]