Skip to Content
Learning Java Through Games
book

Learning Java Through Games

by Lubomir Stanchev
November 2013
Beginner content levelBeginner
386 pages
12h 14m
English
CRC Press
Content preview from Learning Java Through Games
Methods and Formatted Output 81
from one of the cities every day. Extend the game by adding inventory of apples and pears
for both cities. The inventory changes randomly every day. The player can only buy apples
or pears if there is sufficient inventory in the city. The goal of the game again is to make as
much money as possible after ten days. You are allowed to introduce new global variables as
needed. Try to create as many new methods as needed and follow good software engineering
practices.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java by Building Android Games - Third Edition

Learning Java by Building Android Games - Third Edition

John Horton

Publisher Resources

ISBN: 9781466593312