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

- Getting Started with Citrix XenApp? 7.6
- UNIX編程藝術(shù)
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動畫(原書第3版)
- Visual C++串口通信技術(shù)詳解(第2版)
- Lua程序設(shè)計(第4版)
- Modern JavaScript Applications
- 微服務(wù)架構(gòu)深度解析:原理、實踐與進階
- 深入淺出React和Redux
- ServiceNow:Building Powerful Workflows
- 匯編語言編程基礎(chǔ):基于LoongArch
- Illustrator CC平面設(shè)計實戰(zhàn)從入門到精通(視頻自學(xué)全彩版)
- 從Power BI到Analysis Services:企業(yè)級數(shù)據(jù)分析實戰(zhàn)
- Tableau Desktop可視化高級應(yīng)用
- Scrapy網(wǎng)絡(luò)爬蟲實戰(zhàn)
- JavaEE架構(gòu)與程序設(shè)計