안드로이드 / 자바 - 형 변환
[TextView to Double] TextView xDoubleA = Double.parseDouble(xViewA.getText()); ** xViewA 값은 무조건 숫자형식이여야함. 아닌경우 Exception이 발생. [int to String]String str = Integer.toString(i);String str = "" + i; [String to Int] int i = Integer.parseInt(str);int i = Integer.valueOf(str).intValue(); [Double to String] String str = Double.toString(d); [Long to String] String str = Long.toString(l); [Float to String..
2014. 4. 5. 00:03