Code example for Scanner

Methods: nextnextInt

0
						URLEncoder.encode(getDescription(), "UTF-8"),
						expirationDate.get(Calendar.YEAR),
						expirationMonth(), 
						expirationDate.get(Calendar.DAY_OF_MONTH)));
 
		Scanner scan = new Scanner((new DataInputStream(url.openStream())));
 
		int itemId = scan.nextInt();
		String expirationState = scan.next();
 
		setId(itemId);
		DataClient.getInstance().addFF( 
				ExpState.valueOf(expirationState.trim().toUpperCase()), this);
	} 
 
	/** Month, starting from 1, NOT 0. */ 
	private int expirationMonth() { 
		return expirationDate.get(Calendar.MONTH)+1;
	} 
 
Connect your IDE to all the code out there  Get Codota for Java