澳门赌博平台

今天小哥和朋友们一起来做做基本数据类型的练习题

澳门赌博游戏平台

Hello, my friends, everyone, I am 90 brothers love digital!

Today the main content of our article continues to be shared by our Java programming language. Then in the content of the previous article, my brother shared with you how the first program of the Java programming language should be written, then the little brother has already explained in detail in the article for friends, I don’t know if the friends have Learn?

17e6fb4956ef491dab0a37bba049a022

So today's content, the little brother wants to work with friends to get started and do two exercises for Java basic data types. So what is the content of these two exercises? Next, please ask friends and the little brother to have a look!

8259787d473e4f65b5f4c2065f9b8307

The content of these two exercises is to use the two common basic data types introduced by Xiao Ge in the previous article, integer type int and decimal type double to define variables to output the corresponding data we need.

Good friends, then we will officially enter the theme. Please follow along with the younger brother to see how to use these two commonly used basic data types to define variables to output 100 and decimals on our computer screen. 3.14 as an example to give everyone a demonstration

First of all, open our integrated development software to set up, the little brother here does not say much because in the article yesterday, my brother has already gave you a detailed introduction.

After the setup is complete, we can do the following on the software interface:

After removing the two lines of code that the software automatically writes for us, we can complete the output process of the corresponding data by inputting the following lines of code, so that we can get the data we want. The following little brother will give you a demonstration. This first part is consistent with the first program mentioned in our last article.

xx4b9d6399dc0444089cd41ee0f97f2d4f

数据已正确显示

Public static void main(String args []){

Int a=10;

的System.out.println(一);

双b=3.14;

的System.out.println(B);

}

以下兄弟将向所有人解释这两行代码:

我们先来看看第一个。 Int a=10意味着我们定义了一个名为a的整数变量。然后告诉计算机准备调用一块内存来存储一个10的调用大小值。

查看第二个,double b=3.14表示存储小数的变量名称为b,计算机已准备好调用内存块以存储b调用大小值3.14。

并在我们的计算机屏幕上显示这两个数字。

好的,亲爱的朋友们,今天,小弟弟分享了基本的数据类型。这两个练习都在这里完成。我不知道你是否学过它?如果您有兴趣,可以自己尝试一下并尝试一下。如果您喜欢小歌分享的内容,请注意转发意见,谢谢您的支持。谢谢你们!