Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(h < s.length())
- {
- if(h + 7 < s.length())
- w = s.substring(h, h + 7);
- else
- w = s.substring(h, s.length() - 1);
- if(w.length() < 8)
- {
- while(w.length() < 8)
- {
- w += "0";
- }
- }
- int b = Integer.parseInt(w, 2);
- System.out.println(b);
- bw.write(b);
- h += 8;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement