package app;


import ui.Stage1Question1Frame;

import javax.swing.*;

public class App {
	public static void main(String[] args) {

		Stage1 stage1 = new Stage1();

		double checkAllElemSum = stage1.checkAllElementsSum();
		System.out.println("checkAllElemSum = " + checkAllElemSum);

		double[] moles = stage1.moleFractionAllElements();
		for (double mole : moles) {
			System.out.println("moles = " + mole * 100);
		}

		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				new App().startUI();
			}
		});
	}

	private void startUI() {
		new Stage1Question1Frame();
	}
}

@@ -19,55 +19,26 @@
 ort 
-ui.S
+s
 tage1
-Question1Frame;%0A%0Aimport javax.swing.*;
+.calc.Calc;%0A
 %0A%0Apu
@@ -100,472 +100,18 @@
 ) %7B%0A
-%0A
 %09%09
-Stage1 stage1 = new Stage1();%0A%0A%09%09double checkAllElemSum = stage1.checkAllElementsSum();%0A%09%09System.out.println(%22checkAllElemSum = %22 + checkAllElemSum);%0A%0A%09%09double%5B%5D moles = stage1.moleFractionAllElements();%0A%09%09for (double mole : moles) %7B%0A%09%09%09System.out.println(%22moles = %22 + mole * 100);%0A%09%09%7D%0A%0A%09%09SwingUtilities.invokeLater(new Runnable() %7B%0A%09%09%09@Override%0A%09%09%09public void run() %7B%0A%09%09%09%09new App().startUI();%0A%09%09%09%7D%0A%09%09%7D);%0A%09%7D%0A%0A%09private void startUI() %7B%0A%09%09new Stage1Question1Frame
+new Calc
 ();%0A

Simplify app run - create only calculator class.