Advertisement
nguyenvanquan7826

math symbol

Nov 14th, 2014
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.73 KB | None | 0 0
  1. // create List label Button
  2.     private void createListLabelButton(int mode) {
  3.         if (mode == 0) {
  4.             String s[] = { "C", "CE", "←", "(", ")", "7", "8", "9", "/", "√",
  5.                     "4", "5", "6", "*", "x²", "1", "2", "3", "–", "*10ⁿ", "0",
  6.                     "•", "Ans", "+", "=" };
  7.             lbButton = s;
  8.  
  9.             String s1[] = { "", "", "", "(", ")", "7", "8", "9", "/", "√", "4",
  10.                     "5", "6", "*", "²", "1", "2", "3", "-", "*10^", "0", ".",
  11.                     "Ans", "+", "" };
  12.             mathElement = s1;
  13.  
  14.             return;
  15.         }
  16.         if (mode == 1) {
  17.             String s[] = { "C", "CE", "←", "(", ")", "!", "a*b", "log", "7",
  18.                     "8", "9", "/", "√", "ⁿ√", "nCr", "nPr", "4", "5", "6", "*",
  19.                     "x²", "xⁿ", "sin", "arsin", "1", "2", "3", "–", "*10ⁿ",
  20.                     "π", "cos", "arcos", "0", "•", "Ans", "+", "=", "e", "tan",
  21.                     "artan" };
  22.             lbButton = s;
  23.  
  24.             String s1[] = { "", "", "", "(", ")", "!", "", "log ", "7", "8",
  25.                     "9", "/", "√", "ⁿ√", "ℂ", "ℙ", "4", "5", "6", "*", "²",
  26.                     "^", "sin ", "arcsin ", "1", "2", "3", "-", "*10^", "π",
  27.                     "cos ", "arccos ", "0", ".", "Ans", "+", "", "e", "tan ",
  28.                     "arctan " };
  29.             mathElement = s1;
  30.             return;
  31.         }
  32.         if (mode == 2) {
  33.             String s[] = { "C", "CE", "←", "(", ")", "!", "a*b", "Mod", "7",
  34.                     "8", "9", "/", "√", "<<", ">>", "And", "4", "5", "6", "*",
  35.                     "x²", "A", "B", "Or", "1", "2", "3", "−", "*10ⁿ", "C", "D",
  36.                     "Xor", "0", "•", "Ans", "+", "=", "E", "F", "Not" };
  37.             lbButton = s;
  38.  
  39.             String s1[] = { "", "", "", "(", ")", "!", "", "Mod", "7", "8",
  40.                     "9", "/", "√", "≪", "≫", "∧", "4", "5", "6", "*", "²", "A",
  41.                     "B", "∨", "1", "2", "3", "-", "*10^", "C", "D", "⊻", "0",
  42.                     ".", "Ans", "+", "", "E", "F", "¬" };
  43.             mathElement = s1;
  44.             return;
  45.         }
  46.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement