//These functions are used for the calculations.
public void explodeval() {
//were going to grab the length of string, explode into a new array.
Int leng = length(temp);
char[] eqarray = new char[leng];
//exploding into the array we just created.
temp.getChars(0, leng, eqarray, 0);
}
public void calculate(eqarray) {
}
public void makepretty() {
//finally were going to implode, making the array back into a string, to push out as the final answer.
}
public void evaluate() {
//this is basically just going to execute EVERYTHING all at once.
calculate();
makepretty();
}
public void findbrackets() {
}
public static string Left(string temp, int pos, int leng){
return temp.Substring(pos, leng);
}
public static string Right(string temp, int pos, int leng)
{
return temp.Substring(temp.Length - leng, leng);
}
public void evexponents() {
if(temp.contains("^")=="true"){
for (string temp : ^) {
position = temp.indexOf("^");
left = getleft(temp, position);
right = getright(temp, position);
expo = left;
for (int i = 1; i < right; i++) {
expo = expo * left;
}
rep = left + position + right;
temp.replaceFirst(rep, expo);
}
}
}
public void evmulti() {
if(temp.Contains("*")=="true"){
for (string temp : *) {
}
}
}
public static getleft(string, position){
int values[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
int i = 1;
if(int[] left(string, position, 2) == values[]){
String a
[] = left
(string, postion, 2
);
if(int[] left(string, postion, 3) == values[]){
String b
[] = left
(string, position, 3
) + a
;
if(int[] left(string, position, 4) == values[]){
String c
[] = left
(string, position, 4
) + b
;
if(int[] left(string, position, 5) == values[]){
String d
[] = left
(string, position, 5
) + c
;
if(int[] left(string, position, 6) == values[]){
String e
[] = left
(string, position, 6
) + d
;
if(int[] left(string, position, 7) == values[]){
String f
[] = left
(string, position, 7
) + e
;
if(int[] left(string, position, 8) == values[]){
String g
[] = left
(string, position, 8
) + f
;
if(int[] left(string, position, 9) == values[]){
String h
[] = left
(string, position, 9
) + g
;
return h;
}else{
return g;
}
}else{
return f;
}
}else{
return e;
}
}else{
return d;
}
}else{
return c;
}
}else{
return b;
}
}else{
return a;
}
}
}
public static getright(string, position){
int values[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
int i = 1;
if(int[] right(string, position, 2) == values[]){
String a
[] = right
(string, postion, 2
);
if(int[] right(string, postion, 3) == values[]){
String b
[] = a
+ right
(string, position, 3
);
if(int[] right(string, position, 4) == values[]){
String c
[] = b
+ right
(string, position, 4
);
if(int[] right(string, position, 5) == values[]){
String d
[] = c
+ right
(string, position, 5
);
if(int[] right(string, position, 6) == values[]){
String e
[] = d
+ right
(string, position, 6
);
if(int[] right(string, position, 7) == values[]){
String f
[] = e
+ right
(string, position, 7
);
if(int[] right(string, position, 8) == values[]){
String g
[] = f
+ right
(string, position, 8
);
if(int[] right(string, position, 9) == values[]){
String h
[] = g
+ right
(string, position, 9
);
return h;
}else{
return g;
}
}else{
return f;
}
}else{
return e;
}
}else{
return d;
}
}else{
return c;
}
}else{
return b;
}
}else{
return a;
}
}
}
public void evdivi() {
}
public void evadd() {
}
public void evsub() {
}