Code example for DataInputStream

Methods: readBooleanreadInt

0
		out.writeBoolean(zustand); 
	} 
	 
	@Override 
	public void einlesen(DataInputStream in) throws IOException { 
		tastencode = in.readInt(); 
		zustand = in.readBoolean(); 
	} 
	 
} 
Connect your IDE to all the code out there  Get Codota for Java