Here you can find the source of asciiQuads(String word)
static int[] asciiQuads(String word)
//package com.java2s; public class Main { static int[] asciiQuads(String word) { int blen = word.length(); int[] result = new int[(blen + 3) / 4]; for (int i = 0; i < blen; ++i) { int x = word.charAt(i); if (++i < blen) { x = (x << 8) | word.charAt(i); if (++i < blen) { x = (x << 8) | word.charAt(i); if (++i < blen) { x = (x << 8) | word.charAt(i); }//from www. j av a 2 s. c o m } } result[i / 4] = x; } return result; } }