Code example for Field

Methods: getInt, setAccessible, setInt

0
	 *  
	 **/ 
	public void swap(Integer aArg , Integer bArg){
		try { 
			Field valueField = Integer.class.getDeclaredField("value");
			valueField.setAccessible(true);
			int temp = aArg;
			valueField.setInt(aArg, valueField.getInt(bArg));
			valueField.setInt(bArg,temp);
			 
		} catch (Exception e) {
			System.err.println(e.getMessage());
		}  
	} 
	 
	public void swap(IntWrapper aArg , IntWrapper bArg){
		IntWrapper temp = new IntWrapper(aArg.get());
		aArg.set(bArg.get());
		bArg.set(temp.get());
	} 
}