File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
lesson_02/quiz_java/app/src Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 11package org .example ;
22
3-
4- import java .util .ArrayList ;
5- import java .util .Map ;
3+ import java .util .* ;
64
75import org .springframework .boot .autoconfigure .SpringBootApplication ;
86
@@ -40,7 +38,7 @@ public static void main(String[] args) {
4038 }
4139
4240 private static QuizQuestion makeQuestion0 (){
43- Map <AnswerChoice , String > answers = new HashMap ();
41+ Map <AnswerChoice , String > answers = new HashMap <> ();
4442 answers .put (AnswerChoice .A , "To make backups of files" );
4543 answers .put (AnswerChoice .B , "To keep a record of changes over time" );
4644 answers .put (AnswerChoice .C , "To delete unnecessary files" );
Original file line number Diff line number Diff line change 11package org .example ;
2-
3-
4- import java .util .Arrays ;
5- import java .util .HashSet ;
6- import java .util .Set ;
2+ import java .nio .file .Path ;
3+ import java .nio .file .Paths ;
4+ import java .util .stream .Collectors ;
75
86import static org .junit .jupiter .api .Assertions .assertEquals ;
97import static org .junit .jupiter .api .Assertions .assertNotEquals ;
1715import com .codedifferently .instructional .quiz .QuizConfig ;
1816import com .codedifferently .instructional .quiz .QuizQuestion ;
1917
18+ import java .util .* ;
2019
2120@ SpringBootTest
2221public class lesson2test {
You can’t perform that action at this time.
0 commit comments