课程: Java for All Platforms: Desktop, Web, and Mobile Development
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Variables
- [Instructor] Because this is a basic Java course with really no prerequisites, we're going to go over the basics of the Java programming language. And we're going to start that conversation with variables. In Java, a variable is created by declaring, first, its data type, which, in this case, is String with a capital S, and then a space and the name of the variable. So let's call this my variable, capital V. And though it's not required in the language, the convention for Java is to name variables starting with a lowercase letter and then to use camel case, meaning each word in the variable starts with a capital letter, so just like this. You can set a value for a variable using the equal sign, so my variable equals. And then in double quotes, since we're using a string, the value of the variable. I'll just type in example value there. Now we have this red squiggly line here, because Java statements need to end…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
(已锁定)
Variables4 分钟 4 秒
-
(已锁定)
Functions4 分钟 40 秒
-
(已锁定)
Arrays and lists6 分钟 17 秒
-
(已锁定)
Conditional statements3 分钟 45 秒
-
(已锁定)
Classes and packages6 分钟 14 秒
-
(已锁定)
Input and output2 分钟 26 秒
-
(已锁定)
Read data from a file4 分钟 12 秒
-
(已锁定)
Handle Java errors3 分钟 26 秒
-
(已锁定)
Challenge: Sum of a list54 秒
-
(已锁定)
-
-
-
-
-