Here you can find the source of intToBool(int i)
Parameter | Description |
---|---|
i | the int to use |
public static boolean intToBool(int i)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww.j av a2s .co m*/ * Converts from int to boolean. * @param i the int to use * @return true if i is 1, false otherwise */ public static boolean intToBool(int i) { if (i == 1) return true; else return false; } }