- The Java Workshop
- David Cuartielles Andreas G?ransson Eric Foster Johnson
- 219字
- 2021-06-11 13:05:19
Introduction
Business applications have lots of special-case conditions. Such conditions may include finding changes in allocation rules starting at a particular year, or handling different types of employees differently based on their designation. To code for such special cases, you will require conditional logic. You basically tell the computer to perform a set of actions when a particular condition is met.
Before we delve into advanced Java topics, you need to know the basics of Java syntax. While some of this material might seem simple, you'll find you need to use the techniques and syntax shown in this chapter repeatedly in your applications.
As you've seen in Chapter 1, Getting Started, Java's syntax borrows heavily from C and C++. That's true for conditional statements that control the flow of your programs as well. Java, like most computer languages, allows you to do this. This chapter covers the basic syntax of the Java language, especially ways in which you can control the flow of your applications.
This chapter, and the next one on object-oriented programming, will give you a good working knowledge of how Java programs work. You'll be able to take on more advanced APIs and topics. Work your way through this basic material, and you will be ready to move on to the more complex code to come.
- Microsoft Application Virtualization Cookbook
- Python數(shù)據(jù)可視化:基于Bokeh的可視化繪圖
- JMeter 性能測(cè)試實(shí)戰(zhàn)(第2版)
- 深入理解Java7:核心技術(shù)與最佳實(shí)踐
- Java程序設(shè)計(jì)與實(shí)踐教程(第2版)
- Python:Master the Art of Design Patterns
- 組態(tài)軟件技術(shù)與應(yīng)用
- Visual Basic程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)(第二版)
- Python之光:Python編程入門與實(shí)戰(zhàn)
- Instant PHP Web Scraping
- Java Hibernate Cookbook
- Raspberry Pi開發(fā)實(shí)戰(zhàn)
- 微服務(wù)設(shè)計(jì)
- Mastering VMware vSphere Storage
- Learning RxJava