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 getFIOShort(String f, String i, String o) {

        return ((f == null ? "" : (f.trim() + ' '))
                + (i != null && !i.trim().isEmpty() ? i.trim().substring(0, 1) + '.' : "")
                + (o != null && !o.trim().isEmpty() ? o.trim().substring(0, 1) + '.' : "")).trim();
    }
}