Java String to Boolean asBoolean(String name, boolean value)

Here you can find the source of asBoolean(String name, boolean value)

Description

as Boolean

License

Open Source License

Declaration

public static String asBoolean(String name, boolean value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String asBoolean(String name, boolean value) {
        return "{\"" + name + "\" : " + value + "}";
    }//from  w  ww  . ja v  a 2 s  .c  om
}

Related

  1. asBoolean(String flag)
  2. asBoolean(String s)
  3. asBoolean(String str)
  4. asBoolean(String string)
  5. asBoolean(String value)