Here you can find the source of extractData(String message)
public static String extractData(String message)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static String extractData(String message) { String parts[] = message.split(" "); return String.join(" ", Arrays.copyOfRange(parts, 2, parts.length)); }//from w ww . j a v a2 s . c om }