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 Convert_User_ID_To_Phone(String User_ID) {
        if (User_ID.substring(0, 3).equals("972")) {
            User_ID = 0 + User_ID.substring(3);
            User_ID = User_ID.substring(0, 3) + "-" + User_ID.substring(3);
        }
        return User_ID;
    }
}