Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String octalStringToDecimalString(String octal) {
        String decimal = "0";
        try {
            decimal = Integer.valueOf(octal, 8).toString();
        } catch (NumberFormatException e) {
            e.printStackTrace();
        }
        return decimal;
    }
}