- Java Programming for Beginners
- Mark Lassoff
- 161字
- 2021-07-02 15:22:43
Printing a string
Our goal with this HelloWorld program is pretty modest. When it runs, we'd like it to print some text to this output box at the bottom of our screen.
When we downloaded the Java SDK, we acquired a library of useful functions, one of which will do just this. This is the println(), or print line, function. When our Java code executes over this function, which it will do right away because it's the first function in our main() method's entry point, the Java code will print some words to our output box. Function names are followed by open and close parentheses. Inside these parentheses, we put information that the functions need to complete their task. The println() method, of course, needs to know what we would like it to print. In Java, a line of text is contained by two double quotation marks and we call it a string. Let's have our program print "Hello World!":

- Instant Node Package Manager
- 數據庫原理及應用(Access版)第3版
- Object-Oriented JavaScript(Second Edition)
- Expert Android Programming
- 一本書講透Java線程:原理與實踐
- 深入理解BootLoader
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- Mockito Essentials
- 超簡單:用Python讓Excel飛起來(實戰150例)
- 程序員的成長課
- Java程序設計教程
- Access 2016數據庫應用與開發:實戰從入門到精通(視頻教學版)
- Illustrator CS6中文版應用教程(第二版)
- Learning Redis
- MongoDB進階與實戰:微服務整合、性能優化、架構管理