-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
51 lines (44 loc) · 1.3 KB
/
Main.java
File metadata and controls
51 lines (44 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package quizapp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import quizapp.ui.Login;
import repositories.JsonFileRepository;
/**
*
* @author x
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
new Login().setVisible(true);
// TODO code application logic here
// HashMap<String, String> map = new HashMap<>();
// map.put("1", "Mango"); //Put elements in Map
// map.put("2", "Apple");
// map.put("3", "Banana");
// map.put("4", "Grapes");
// JsonFileRepository j = new JsonFileRepository("resources/databases/questions.json");
//// j.createItemsInJsonFile(map);
//
// List<String> a = new ArrayList<>();
//// a.add("question");
//// a.add("optionA");
//// a.add("optionB");
//// a.add("optionC");
//// a.add("optionD");
//// a.add("answer");
//
// a.add("1");
// a.add("2");
// a.add("3");
// a.add("4");
// j.getRandomRows(0, a);
}
}