Here you can find the source of versiontostring(int vv)
static String versiontostring(int vv)
//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))); } }