Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char[] charArray = string.toCharArray();
- boolean[] mass = new boolean[charArray.length];
- for(int i=0; i<charArray.length; i++){
- if (charArray[i] == '0')
- mass[i] = false;
- else
- mass[i] = true;
- }
Add Comment
Please, Sign In to add comment