Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String dataSubstring(String _string) {
if (_string.length() > 31) {
return _string.substring(0, 28) + " ...";
} else
return _string;
}
}