List of usage examples for java.lang Integer toString
@HotSpotIntrinsicCandidate public static String toString(int i)
From source file:Main.java
public static String getSeqWeek() { Calendar c = Calendar.getInstance(Locale.CHINA); String week = Integer.toString(c.get(Calendar.WEEK_OF_YEAR)); if (week.length() == 1) week = "0" + week; String year = Integer.toString(c.get(Calendar.YEAR)); return year + week; }
From source file:Main.java
public static String getDay() { Calendar calendar = Calendar.getInstance(); int day = calendar.get(Calendar.DAY_OF_MONTH); return Integer.toString(day); }
From source file:Main.java
public static void tolog(int value) { Log.i("@@@~~my~~~@@@", Integer.toString(value)); }
From source file:Main.java
public static String temperatureDoubleToString(String temperature) { int intTemperature = (int) Double.parseDouble(temperature); return Integer.toString(intTemperature); }
From source file:Main.java
/** * /*from www . j ava 2 s. c om*/ * @param input * @param newDigit * @return */ public static String formatInput(String input, int newDigit) { String output = input + Integer.toString(newDigit); int start = output.length() - 4; if (start < 0) { start = 0; } String format = output.substring(start, output.length()); return format; }
From source file:Main.java
public static String implodeInt(int[] list) { String sep = ","; StringBuilder sb = new StringBuilder(); for (int i = 0; i < list.length; i++) { sb.append(Integer.toString(list[i])); if (i != list.length - 1) { sb.append(sep);/*from w w w . j ava2 s. c o m*/ } } return sb.toString(); }
From source file:Main.java
@NonNull public static String getRunsCount() { return Integer.toString(preferences.getAll().size()); }
From source file:Main.java
public static String getSecond() { Calendar c = Calendar.getInstance(); c.setTime(new Date()); int second = c.get(Calendar.SECOND); return Integer.toString(second); }
From source file:Main.java
public static String[] decode(String data) { String[] datas = data.split(" "); String[] stringDatas = new String[datas.length]; for (int i = 0; i < datas.length; i++) { stringDatas[i] = Integer.toString(Integer.parseInt(datas[i], 16)); }//from ww w .j a v a 2s . c o m return stringDatas; }
From source file:Main.java
public static String getEANList(String[] eans) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < eans.length; i++) { if (i > 0) sb.append(" "); sb.append(Integer.toString(i + 1) + "/" + eans[i]); }/*from www .j a v a2 s.c o m*/ return sb.toString(); }