Java String Tokenize getParamFloat(StringTokenizer s)

Here you can find the source of getParamFloat(StringTokenizer s)

Description

Gets an float from param file, skiping "="

License

Open Source License

Parameter

Parameter Description
s Token

Return

Float value of the token

Declaration

public static float getParamFloat(StringTokenizer s) 

Method Source Code


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

import java.util.*;

public class Main {
    /**//  w ww. j  a  v  a2  s. c  om
     * <p>
     * Gets an float from param file, skiping "="
     * </p>
     * @param s     Token
     * @return      Float value of the token
     */
    public static float getParamFloat(StringTokenizer s) {
        String val = s.nextToken(); // skip "="
        val = s.nextToken();
        return Float.parseFloat(val);
    }
}

Related

  1. extractTokens(String text, String delim)
  2. getAllTokens(final String string)
  3. getCommandTokens(String commandString)
  4. getFileName(StringTokenizer s)
  5. getNameTokens(final String names)
  6. getParamString(StringTokenizer s)
  7. getSQLTokens(String query)
  8. getStringTokens(String str)
  9. getTokenArray(String sequence, String[] chain, boolean paired, boolean includeDelim)