摘要:
3.5. OperatorsThe usual arithmetic operators +, -, *, / are used in Java for addition, subtraction, multiplication, and division. The / operator denot...
阅读全文
posted @ 2015-04-13 18:05
uTank
阅读(310)
推荐(0)
编辑
摘要:
3.4. VariablesIn Java, every variable has a type. You declare a variable by placing the type first, followed by the name of the variable. Here are som...
阅读全文
posted @ 2015-04-13 18:04
uTank
阅读(237)
推荐(0)
编辑
摘要:
3.3. Data TypesJava is a strongly typedlanguage(强类型语音). This means that every variable must have a declared type(每个变量都必须声明类型). There are eight primiti...
阅读全文
posted @ 2015-04-13 17:29
uTank
阅读(238)
推荐(0)
编辑
摘要:
Let’s look more closely at one of the simplest Java programs you can have—one that simply prints a message to console:public class FirstSample{ pub...
阅读全文
posted @ 2015-04-13 10:17
uTank
阅读(166)
推荐(0)
编辑