static String seq_name(int[] code, int max)
    {
    	int j;
        String buffer="";
    	StringBuilder dest = new StringBuilder();
    	for(j=0;j<SEQ_MAX;++j)
    	{
    		String name;
    
    		if ((code)[j] ==CODE_NONE)
    			break;
    
    		if (j != 0 && 1 + 1 <= max)
    		{
    			dest.append(' ');//*dest = ' ';
    			//dest += 1;
    			max -= 1;
    		}
    
    		name = code_name(code[j]);
    		if (name==null)
    			break;
    
    		if (name.length() + 1 <= max)//if (strlen(name) + 1 <= max)
    		{
    			dest.append(name);
    			//dest += strlen(name);
    			max -= strlen(name);
    		}
    	}
        if (dest.toString().equals(buffer) && 4 + 1 <= max)
             return dest.append("None").toString();
        else
            return dest.toString();
    }