Control structures
Unit 3
TCC 121/05
Programming Fundamentals with Java
Control Structures
ii WAWASAN OPEN UNIVERSITY
TCC 121/05 Programming Fundamentals with Java
COURSE TEAM
Course Team Coordinator: Mr. Vincent Chung Sheng Hung Content Writer: Dr. Wong Li Pei Instructional Designer: Ms. Jeanne Chow Academic Member: Ms. Khor Ean Teng
COURSE COORDINATOR
Mr. Vincent Chung Sheng Hung
EXTERNAL COURSE ASSESSOR
Professor Andrew Lui, The Open University of Hong Kong
PRODUCTION
In-house Editor: Ms. Jeanne Chow Graphic Designer: Ms. Audrey Yeong
Wawasan Open University is Malaysia’s first private not-for-profit tertiary institution dedicated to adult learners. It is funded by the Wawasan Education Foundation, a tax-exempt entity established by the Malaysian People’s Movement Party (Gerakan) and supported by the Yeap Chor Ee Charitable and Endowment Trusts, other charities, corporations, members of the public and occasional grants from the Government of Malaysia. The course material development of the university is funded by Yeap Chor Ee Charitable and Endowment Trusts.
© 2008 Wawasan Open University First revision 2011, Second revision 2012
Except where otherwise noted, this work is licensed under the terms of the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http:// creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. This course material was published to support the learning of students registered with Wawasan Open University. Wawasan Open University does not grant any degree, certification or credits based solely on your completion of this course material.
Wawasan Open University Jalan Sultan Ahmad Shah, 10050 Penang. Tel: (604) 2180333 Fax: (604) 2279214 Email: enquiry@wou.edu.my Website: www.wou.edu.my
UNIT 3 iii
Control structures
Contents
Unit 3 Control