Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String get4numberCoded(int i) {
        if (i > 9999 || i < 0) {
            return "";
        }

        i = i + 10000;
        String s = "" + i;

        return ".." + s.substring(1, 5) + "..";
    }
}