Here you can find the source of shiftRightState(int[] state)
public static final int shiftRightState(int[] state)
//package com.java2s; /*//from w w w . jav a2s .com * Copyright 2001-2008 Aqris Software AS. All rights reserved. * * This program is dual-licensed under both the Common Development * and Distribution License ("CDDL") and the GNU General Public * License ("GPL"). You may elect to use one or the other of these * licenses. */ public class Main { public static final int shiftRightState(int[] state) { int returnValue = state[state.length - 1]; for (int i = state.length - 1; i > 0; i--) { state[i] = state[i - 1]; } state[0] = 0; return returnValue; } }