I want to convert seven segment numbers to normal string in java. For example, if input string like this
input
_ _ _ _ _ _ _ _
| _| _||_||_ |_ ||_||_|| |
||_ _| | _||_| ||_| _||_|
output should be like
1234567890
I have found this JavaScript answer, and I'm trying to convert it to java.
for now I have:
private static void get7segment(String ascii)
{
String[] splited="909561432".split("");
HashMap<Integer,Integer> map=new HashMap<Integer,Integer>();
map.put(0, 63);
map.put(1, 6);
map.put(2, 91);
map.put(3, 79);
map.put(4, 102);
map.put(5, 109);
map.put(6, 125);
map.put(7, 7);
map.put(8, 127);
map.put(9, 111);
}
any help would be appricheate