Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * BE A9
     * @param str
     */
    public static byte stringToByte(String str) {
        String[] splitString = str.split("");
        int parseInt = Integer.parseInt(splitString[1], 16);
        int parseInt2 = Integer.parseInt(splitString[2], 16);
        int i = parseInt * 16 + parseInt2;
        return (byte) i;
    }
}