Here you can find the source of convertToMillis(String time)
public static int convertToMillis(String time)
//package com.java2s; //License from project: Open Source License public class Main { public static int convertToMillis(String time) { int millis = 100; try {// w w w . j a va 2 s . c o m millis = Integer.parseInt(time); } catch (NumberFormatException nfe) { System.out.println("" + nfe.getMessage()); nfe.printStackTrace(); } return millis; } }