**Can anyone please help create another set of UI for this source code in Java
import java.util.ArrayList; import java.util.Scanner;
public class Main {
static ArrayList variableArray = new ArrayList<>(); static ArrayList equationArray = new ArrayList<>(); /** * The program starts here. The main method parses a String user input. * Letters are stored in EquationVariables, and other characters are stored as Characters * EquationVariables are placed in a variable array; duplicate letters are only added once * Everything is placed in an Equation array * @param args */ public static void main(String[] args) { Scanner input = new Scanner(System.in); //Reads in the equation and creates variables for all letters System.out.println("Enter equation here using * for 'and', + for 'or', and ! for 'not': "); System.out.println("Use this format: a * b + !c * !a (spaces do not matter/uppercase A is the same as lowercase a)"); String equation = input.nextLine(); //removes spaces and upper-case letters from the user input equation = equation.replaceAll(" ", ""); equation = equation.toLowerCase(); int counter = 1; //loops through the equation and stores all characters between a and z in a variable array. for (int i = 0; i < equation.length();i++){ if (equation.charAt(i)>='a' && equation.charAt(i)<='z') { boolean alreadyExists = false; EquationVariables temp = new EquationVariables(equation.charAt(i),true, counter); //checks for duplicate letters and doesn't add them to the array twice for (EquationVariables v : variableArray){ if (v.getName()==temp.getName()){ alreadyExists = true; temp = v; } } if (!alreadyExists){ variableArray.add(temp); //doubles the significant bit for each variable that is added //First variable has 1, second has 2, third has 4, and so on counter = counter*2; } //stores the variable objects that are created in an equation array as well equationArray.add(temp); }else{ //any non-letter characters get stored in an equation array equationArray.add(equation.charAt(i)); } } input.close(); if (variableArray.size() > 0){ //Creates an instance of the truth table class with the proper parameters TruthTableGUI table = new TruthTableGUI(variableArray, equationArray); table.constructTable(); }else{ System.out.println("No variables found"); } } }