Java String Value Of valueOf(String s)

Here you can find the source of valueOf(String s)

Description

value Of

License

Open Source License

Declaration

public static Long valueOf(String s) 

Method Source Code

//package com.java2s;
/**/*www  .  j  a v  a 2s. c o m*/
 * Copyright (c) <2013> <Radware Ltd.> and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the terms of the Eclipse Public License
 * v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
 * @author Gera Goft 
 * @version 0.1
 */

public class Main {
    public static Long valueOf(String s) {
        try {
            return (Long.valueOf(s));
        } catch (Exception e) {
            return 0L;
        }
    }
}

Related

  1. valueOf(String boolStr)
  2. valueOf(String decimal)
  3. valueOf(String first, String defaultstr)
  4. valueOf(String format, String value)
  5. valueOf(String s)
  6. valueOf(String s)
  7. valueOf(String s)
  8. valueOf(String s)
  9. valueOf(String s, Class e)