Here you can find the source of getParamFloat(StringTokenizer s)
Gets an float from param file, skiping "="
Parameter | Description |
---|---|
s | Token |
public static float getParamFloat(StringTokenizer s)
//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); } }