Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.text.TextUtils;

public class Main {
    public static String c2f(String celsius) {
        if (!TextUtils.isEmpty(celsius)) {
            int fahrenheit = (int) (Float.parseFloat(celsius) * 9 / 5 + 32);
            return fahrenheit + "";
        } else {
            return "";
        }
    }
}