blob: 90fd434128e8d40c14e230d1ef1df7a5306ccc4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* */ import java.io.PrintStream;
/* */ import java.util.ArrayList;
/* */ import utilities.DecimalFormatter;
/* */
/* */ public class AppendingThread extends Thread
/* */ {
/* 12 */ private static int count = 1;
/* */ private int index;
/* */ private String str;
/* */ private ArrayList<String> ans;
/* */ private DecimalFormatter f;
/* */
/* */ public AppendingThread(String toSolve, int index, ArrayList<String> ans, DecimalFormatter f)
/* */ {
/* 18 */ super(Thread.currentThread().getThreadGroup(), "AppendingThread - " + count);
/* 19 */ count += 1;
/* 20 */ this.str = toSolve;
/* 21 */ this.ans = ans;
/* 22 */ this.index = index;
/* 23 */ this.f = f;
/* */ }
/* */ public void run() {
/* 26 */ String temp = "";
/* */ try {
/* 28 */ temp = ControlPanel.figure(this.str);
/* */ } catch (Exception e) {
/* 30 */ System.out.println(e.getMessage());
/* 31 */ }CalculatorGUI.silentPrint(this.str + "->");
/* 32 */ System.out.println(this.f.format(temp));
/* 33 */ CalculatorGUI.silentPrint("\n");
/* 34 */ this.ans.add(this.index + 1, this.f.format(temp));
/* */ }
/* */ }
/* Location: Modulus.jar
* Qualified Name: AppendingThread
* JD-Core Version: 0.6.2
*/
|