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 getPowerNumberString(String string) {
        String Current = string.replaceAll(" ", "");

        char[] chars = Current.toCharArray();
        String number = "";
        for (int i = 8; i < chars.length - 4; i++) {
            number += chars[i];
        }
        return number;
    }
}