Aggiornato il file main per aggiunere il vocabolario e anche aprire il JavaSwing

This commit is contained in:
Mr SL1D3R 2025-02-13 12:48:38 +01:00
parent ef9ee5cab2
commit 9452766525
1 changed files with 12 additions and 8 deletions

View File

@ -1,17 +1,21 @@
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
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
public static void main(String[] args) {
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
// to see how IntelliJ IDEA suggests fixing it.
System.out.printf("Hello and welcome!");
/*SwingUtilities.invokeLater(() -> {
designMain frame = new designMain();
frame.setVisible(true);
});*/
for (int i = 1; i <= 5; i++) {
//TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
System.out.println("i = " + i);
}
Vocabolario vocab = new Vocabolario();
vocab.caricaDaFile("dizionario.txt");
System.out.println(vocab.size());
}
}