A text variable · 文字变量
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
English
A text variable
Text is a String. String name = "Sam"; holds the word Sam.
中文
文字变量
文字用 String。String name = "Sam"; 存放单词 Sam。
Put Sam in a box called name, then print it. · 把 Sam 放进名为 name 的盒子,然后打印它。
Click Run to see the output here. · 点击“运行”查看此处输出。