I have a TextView
showing data like 5(25)+10(12)+13(10)
which is shown as a String.
I want 5,25,10,12,13,10
as integer. How is it possible?.
Integer value= number.toString();
textview.settext(value);
I have a TextView
showing data like 5(25)+10(12)+13(10)
which is shown as a String.
I want 5,25,10,12,13,10
as integer. How is it possible?.
Integer value= number.toString();
textview.settext(value);
Please use this:
string value = 5 + "(" + 25 + ")"+10+"("+12+")" + 13+"("+10+")"
//this makes 5(25)10(12)12(10)
textView.setText(value)
If you have 5,25,10,12,13,10 externally as Integers:
int five = 5;
int twentyFive = 25;
int ten = 10;
int twelve = 12;
int thirteen = 13;
string value = five + "(" + twentyFive + ")"+ten+"("+twelve+")" + thirteen+"("+ten+")"
//this makes 5(25)10(12)12(10)
textView.setText(value)