List of utility methods to do Second Get
String[] | getSecondColumnAsArray(String[][] stringMatrix) get Second Column As Array String[] array = new String[stringMatrix.length]; for (int i = 0; i < stringMatrix.length; i++) { array[i] = stringMatrix[i][1]; return array; |
String | getSecondExampleTime() get Second Example Time return "1=2010-08-05T01:56:03+0200;2=2010-08-05T01:56:03+0200;3=2010-08-05T01:56:03+0200;4=2010-08-05T01:56:03+0200;5=2010-08-05T01:56:03+0200;6=2010-08-05T01:56:03+0200;7=2010-08-05T01:56:03+0200;8=2010-08-05T01:56:03+0200;9=2010-08-05T01:56:03+0200;10=2010-08-05T01:56:03+0200;11=2010-08-05T01:56:03+0200;12=2010-08-05T01:56:03+0200;13=2010-08-05T01:56:03+0200;14=2010-08-05T01:56:03+0200;15=2010-08-05T01:56:03+0200;16=2010-08-05T01:56:03+0200;17=2010-08-05T01:56:03+0200;18=2010-08-05T01:56:03+0200;19=2010-08-05T01:56:03+0200;20=2010-08-05T01:56:03+0200;21=2010-08-05T01:56:03+0200;22=2010-08-05T01:56:03+0200;23=2010-08-05T01:56:03+0200;24=2010-08-05T01:56:03+0200;25=2010-08-05T01:56:03+0200;26=2012-03-22T21:55:29+0100;27=2010-08-05T01:56:03+0200;28=2010-08-05T01:56:03+0200;29=2010-08-05T01:56:03+0200;30=2010-08-05T01:56:03+0200;31=2010-08-05T01:56:03+0200;32=2010-08-05T01:56:03+0200;33=2010-08-05T01:56:03+0200;34=2010-08-05T01:56:03+0200;35=2010-08-05T01:56:03+0200;36=2010-08-05T01:56:03+0200;37=2010-08-05T01:56:03+0200;38=2010-08-05T01:56:03+0200;39=2010-08-05T01:56:03+0200;40=2010-08-05T01:56:03+0200;41=2010-08-05T01:56:03+0200;42=2010-08-05T01:56:03+0200;43=2010-08-05T01:56:03+0200;44=2010-08-05T01:56:03+0200;45=2010-08-05T01:56:03+0200;46=2010-08-05T01:56:03+0200;47=2012-11-30T21:51:39+0100;48=2010-08-05T01:56:03+0200;49=2010-08-05T01:56:03+0200;50=2010-08-05T01:56:03+0200;51=2010-08-05T01:56:03+0200;52=2010-08-05T01:56:03+0200;53=2010-08-05T01:56:03+0200;54=2010-08-05T01:56:03+0200;55=2010-08-05T01:56:03+0200;56=2012-11-30T21:51:39+0100;57=2010-08-05T01:56:03+0200;58=2010-08-05T01:56:03+0200;59=2010-08-05T01:56:03+0200;60=2010-08-05T01:56:03+0200;61=2010-08-05T01:56:03+0200"; |
String | getSecondField(String rowStr, char delimiter) get Second Field int firstDelim = rowStr.indexOf(delimiter); if (firstDelim < 0) return null; int secondDelim = rowStr.indexOf(delimiter, firstDelim + 1); if (secondDelim < 0) return null; String field1 = rowStr.substring(firstDelim + 1, secondDelim).trim(); return field1; ... |
String | getSecondFromHMS(String hms) get Second From HMS if (hms == null || hms.length() != DEFAULT_TIME_FORMAT.length()) { return null; return hms.substring(6, 8); |
int | getSecondFromTime(int hour, int minute, int second) Converts the time as the number of elapsed seconds from 00:00:00 . int result = 0; result += hour * 60 * 60; result += minute * 60; result += second; return result; |
int | getSecondInt(long c) get Second Int return (int) c; |
int | getSecondInt(long time) get Second Int if (time > (60)) { return (int) ((time % (60))); } else { return (int) (time); |
int | getSecondMaxInArray(float[] arr) get Second Max In Array int max = 0; int secondMax = 0; for (int i = 1; i < arr.length; i++) { if (arr[i] > arr[max]) max = i; for (int i = 1; i < arr.length; i++) { if (arr[i] > arr[secondMax] && arr[i] < arr[max]) ... |
String | getSecondName(String names) get Second Name if (names == null) { throw new Exception("Names cannot be null"); String temp = names.trim(); if (temp.contains(" ")) { return temp.substring(temp.indexOf(" ")).trim(); return temp; ... |
String | getSecondRDNValue(String dn) Get the Second RDN Value if (dn == null) { return null; String rdn = dn.split(",")[1]; return rdn.split("=")[1]; |