File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/src/main/java/hexlet/code Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11package hexlet .code ;
22import java .util .Scanner ;
33
4- public class Cli {
4+ public final class Cli {
5+ private Cli () {
6+ }
57 public static String greetUser () {
68 Scanner scanner = new Scanner (System .in );
79 System .out .print ("May i have your name? " );
Original file line number Diff line number Diff line change 22import java .util .Scanner ;
33import java .security .SecureRandom ;
44
5- public class Even {
5+ public final class Even {
6+ private Even () {
7+ }
68 public static boolean generateNumber (String userName ) {
79 Scanner scanner = new Scanner (System .in );
810 System .out .println ("Answer 'yes' if the number is even, otherwise answer 'no'" );
@@ -32,4 +34,3 @@ public static boolean generateNumber(String userName) {
3234 return true ;
3335 }
3436}
35-
You can’t perform that action at this time.
0 commit comments