官术网_书友最值得收藏!

Java is everywhere

The core Java fundamentals that we are about to learn apply to classes that we inherit from (such as Activity), as well as classes that we write ourselves (as we will start to do in Chapter 9, Object-Oriented Programming). As it is more logical to learn the basics before we write our own classes, we will be using the extended Activity class in a whole bunch of mini-projects in this chapter to learn and practice Java, and we will use Log and Toast again to observe the results of our coding. In addition, we will use more methods that we will write ourselves (called from buttons), as well as the overridden methods of the Activity class to trigger the execution of our code.

However, when we move onto Chapter 9, Object-Oriented Programming and start to write our own classes, as well as understand more about how classes written by others work, everything we have learned here will apply then too. In fact, all the Java that you learn in this chapter will work in the following Java environments if you strip it out of the Activity class and paste it into these environments:

  • Any of the major desktop operating systems
  • Many modern televisions
  • Sat nav
  • Smart fridges and more...

Tip

Calling all Java gurus

If you have already done some Java programming and understand the following words: if, else, while, do while, switch, and for, you can probably skip to the next chapter. Or you might like to skim over this information as a refresher.

Let's get on with learning how to code in Java.

主站蜘蛛池模板: 九龙城区| 乐安县| 都兰县| 新泰市| 吉安市| 西盟| 宜宾县| 神农架林区| 连城县| 琼结县| 云林县| 重庆市| 崇明县| 石林| 城市| 库车县| 扎兰屯市| 远安县| 永登县| 运城市| 如东县| 大石桥市| 宁津县| 新丰县| 蓝田县| 湘潭县| 东兰县| 安陆市| 临清市| 寿光市| 浮梁县| 浦东新区| 东山县| 马鞍山市| 铁力市| 和顺县| 巴塘县| 盐亭县| 原阳县| 巴彦县| 梁山县|