Aggiornato il file main per aggiunere il vocabolario e anche aprire il JavaSwing
This commit is contained in:
parent
ef9ee5cab2
commit
9452766525
|
@ -1,17 +1,21 @@
|
||||||
package com.mrsl1d3r.wordle;
|
package com.mrsl1d3r.wordle;
|
||||||
|
|
||||||
|
import com.mrsl1d3r.wordle.grafica.designMain;
|
||||||
|
import com.mrsl1d3r.wordle.logica.Vocabolario;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
|
||||||
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
|
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
|
||||||
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
|
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
|
/*SwingUtilities.invokeLater(() -> {
|
||||||
// to see how IntelliJ IDEA suggests fixing it.
|
designMain frame = new designMain();
|
||||||
System.out.printf("Hello and welcome!");
|
frame.setVisible(true);
|
||||||
|
});*/
|
||||||
|
|
||||||
for (int i = 1; i <= 5; i++) {
|
Vocabolario vocab = new Vocabolario();
|
||||||
//TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
|
vocab.caricaDaFile("dizionario.txt");
|
||||||
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
|
System.out.println(vocab.size());
|
||||||
System.out.println("i = " + i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue