private String annaBittiStringi(int luku, int bittiMaara) {
    	StringBuilder sb = new StringBuilder();
    	for (int i = bittiMaara; i > 0; i--) {
    		if ((luku & (1 << i-1)) != 0)
    			sb.append("1");
    		else
    			sb.append("0");
    	}
    	return sb.toString();
    }