Here you can find the source of convertBooleanValueToInt(String value)
Parameter | Description |
---|---|
value | BooleanString |
public static int convertBooleanValueToInt(String value)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w w w.j a v a 2s .co m*/ * * @param value BooleanString * @return Integer 1 || 0 */ public static int convertBooleanValueToInt(String value) { int val = 0; if (value.equals("true")) { val = 1; } else { val = 0; } return val; } }