package com.guisehn.main;

import java.util.Scanner;

public class AppStarter {
    
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        
        System.out.println("Digite o tamanho do quadrado mágico:");
        int size = in.nextInt();

        System.out.println("Digite o tamanho da população:");
        int populationSize = in.nextInt();
        
        System.out.println("Digite a probabilidade de mutação:");
        double mutationProbability = in.nextDouble();
        
        MagicSquareFinder finder = new MagicSquareFinder(size,
            populationSize,
            (int)(populationSize * 0.05),
            mutationProbability);

        finder.start();
        
        /*MainScreen screen = new MainScreen();
        screen.setVisible(true);*/
    }
    
}

package com.guisehn.main;

import java.util.Scanner;

public class AppStarter {
    
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        
        System.out.println("Digite o tamanho do quadrado mágico:");
        int size = in.nextInt();

        System.out.println("Digite o tamanho da população:");
        int populationSize = in.nextInt();
        
        System.out.println("Digite o tamanho da elite:");
        int eliteSize = in.nextInt();
        
        System.out.println("Digite a probabilidade de mutação:");
        double mutationProbability = in.nextDouble();
        
        MagicSquareFinder finder = new MagicSquareFinder(size,
            populationSize,
            eliteSize,
            mutationProbability);

        finder.start();
        
        /*MainScreen screen = new MainScreen();
        screen.setVisible(true);*/
    }
    
}

allow the user to enter elite size