I'm trying to reformat a string in java and remove the final decimal out of an android version number, so 4.2.2 would be formatted to 4.2.
Would I use REGEX to get the desired format for the android version number?
Here's my code for finding the android version number:
String osRelease = Build.VERSION.RELEASE;
https://i.stack.imgur.com/5wIeI.jpg [Error Log File From Eclipse]