question: void write ( Environment env , DataOutputStream out , ConstantPool tab ) throws IOException { out . writeByte ( CONSTANT_NAMEANDTYPE ) ; out . writeShort ( tab . index ( name ) ) ; out . writeShort ( tab . index ( type ) ) ; }
target:  Write the constant to the output stream