- 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!":

- Web程序設(shè)計(jì)及應(yīng)用
- Unreal Engine Physics Essentials
- MySQL數(shù)據(jù)庫(kù)管理實(shí)戰(zhàn)
- What's New in TensorFlow 2.0
- Web交互界面設(shè)計(jì)與制作(微課版)
- Python程序設(shè)計(jì)(第3版)
- 編寫(xiě)整潔的Python代碼(第2版)
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Python神經(jīng)網(wǎng)絡(luò)項(xiàng)目實(shí)戰(zhàn)
- OpenShift在企業(yè)中的實(shí)踐:PaaS DevOps微服務(wù)(第2版)
- Building Minecraft Server Modifications
- Java EE企業(yè)級(jí)應(yīng)用開(kāi)發(fā)教程(Spring+Spring MVC+MyBatis)
- 實(shí)戰(zhàn)Java高并發(fā)程序設(shè)計(jì)(第2版)
- OpenCV 3計(jì)算機(jī)視覺(jué):Python語(yǔ)言實(shí)現(xiàn)(原書(shū)第2版)
- 軟件工程與UML案例解析(第三版)