Java Minute Parse parseMinutes(String minutes, int defaultValue)

Here you can find the source of parseMinutes(String minutes, int defaultValue)

Description

parse Minutes

License

Open Source License

Declaration

public static int parseMinutes(String minutes, int defaultValue) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int parseMinutes(String minutes, int defaultValue) {
        try {//from   ww  w .  ja  v a2  s  . c  o  m
            return Integer.parseInt(minutes);
        } catch (Exception ex) {
            return defaultValue;
        }
    }
}

Related

  1. parseHHMMStringToMinutes(String time)
  2. parseHourAndMinute(String value)
  3. parseIntForMinute(Integer i)
  4. parseMinutes(long time)
  5. parseMinutes(String timeInMinutes)