Code example for Scanner

Methods: useLocale

0
        matList = new MaterialList();
 
        InputStream in = null;
        try { 
            in = info.openStream();
            scan = new Scanner(in);
            scan.useLocale(Locale.US);
             
            while (readLine()); 
        } finally { 
            if (in != null){
                in.close();
            } 
        } 
         
        if (matName != null){
            // still have a material in the vars 
            createMaterial(); 
            resetMaterial(); 
        }