Java tutorial
//package com.java2s; public class Main { public static int extractTag(String whole, String tag) { return Integer.parseInt(whole.substring(tag.length(), whole.length())); } }