Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.math.BigDecimal;

public class Main {

    public static Integer change2int(String price) {
        BigDecimal decimal = new BigDecimal(price);
        BigDecimal decimal1 = new BigDecimal(100);
        return decimal.multiply(decimal1).intValue();
    }
}