Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    private static final String LOG_TAG = "CommonUtils";

    public static String deletaDec(String de) {
        try {
            float tem = Float.parseFloat(de);
            return String.valueOf((int) tem);
        } catch (Exception e) {
            Log.i(LOG_TAG, "deletaDec exception : wind = " + de);
            return "0";
        }
    }
}