コード例 #1
0
ファイル: MyView.java プロジェクト: LiorShachar/JavaProject
 /**
  * prints the string provided using the scanner in the cli, so the view will interact with the
  * user the way he chose.
  */
 @Override
 public void printMsg(String s) {
   cli.getOut().println(s);
   cli.getOut().flush();
 }
コード例 #2
0
ファイル: MyView.java プロジェクト: LiorShachar/JavaProject
 /** starts the CLI thread */
 @Override
 public void start() {
   cli.start();
 }