2 Replies Latest reply: Feb 2, 2007 2:15 AM by 807607 RSS

    How to Change String back to math symbol for calculation??

    807607
      Hi,

      How to Change String back to math symbol for calculation to achieve this coding. it's for a for loop

      int a;

      String sym0 = "+";
      String sym1 = "-";
      String sym2 = "*";
      String sym3 = "/";

      for (int i=0; i<=3; i++)
      {
      a = 45 sym0 74;
      }