字符串里的数字相加减

example:java    “1+11+345-123+444-3-3+4”     or   “-1+3-5-2+3“code public int getResult(String s) throws Exception { int sum = 0; boolean flage = true; for (int i = 0; i < s.le
相关文章
相关标签/搜索