Here you can find the source of toInteger(final Object o)
Parameter | Description |
---|---|
o | the object to convert |
public static int toInteger(final Object o)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w .ja v a 2 s . c o m * Metodo que devuelve un numero de tipo Int a partir de un String * * @param o the object to convert * @return parsed value */ public static int toInteger(final Object o) { return Integer.parseInt(String.valueOf(o)); } }