Java Version Convert To versiontostring(int vv)

Here you can find the source of versiontostring(int vv)

Description

versiontostring

License

Open Source License

Declaration

static String versiontostring(int vv) 

Method Source Code

//package com.java2s;
/*   Copyright 2013 D?nes Derh?n
*
*   This file is part of BlockPhysics.//from w  w w.j  av a  2s. c  o m
*
*   BlockPhysics is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   BlockPhysics is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   You should have received a copy of the GNU General Public License
*   along with BlockPhysics.  If not, see <http://www.gnu.org/licenses/>.
*/

public class Main {
    static String versiontostring(int vv) {
        String vs = Integer.toString(vv);
        return Integer.toString(Integer.parseInt(vs.substring(1, 3))) + "."
                + Integer.toString(Integer.parseInt(vs.substring(3, 5))) + "."
                + Integer.toString(Integer.parseInt(vs.substring(5)));
    }
}

Related

  1. versionStringToInt(String version)
  2. versionStringToNumber(String versionStr)
  3. versionToCode(String version)
  4. versionToSegments(String versionString, int idx, int i)
  5. versionToString(int version)
  6. VersionToString(long uVersion)