13359人加入学习
(67人评价)
Java编程学习第一季

制作于2018年2月8日

价格 免费

正数原码补码反码相同

 

负数求补码

 

[展开全文]

Ctrl+A(all)全选

Ctrl+S(save)保存 

Ctrl+Z取消

Ctrl+X剪切

Ctrl+V粘贴

Ctrl+C( copy)复制

Ctrl+N (new)新建

Home行首

End行尾

[展开全文]

包:全部小写,以域名开头;

类名字:第一个单词首字母大写,后面的单词首字母大写;

 

[展开全文]

一.题目1  12

2.  12

3.  12

4.  6

[展开全文]

1.  1、2、3、4

2.BDGH

3.byte short int long float double char

4.byte short int long 

5.public class Student{

       public static void main(string[] args){

            

}

}

[展开全文]

Tab 四个空格,在编程中一般用来缩进格式

回车 用来换行

win+R 打开运行窗口

[展开全文]

char[]  c = {'A','B','C'};

for(int i = 0; i <c.length; i + +){

System.out.println(c[i]);

}

[展开全文]

4.

Scanner scan = new Scanner(System.in);
int a,b,c;
System.out.println("请输入三个整数");
a= scan.nextInt();
b= scan.nextInt();
c= scan.nextInt();
if (a>b){
     int d =a;
     a=b;
     b=d;
}
if (b>c) {
    int d = b;
    b = c;
    c = d;
}
if (a>b){
    int d =a;
    a=b;
    b=d;
}
System.out.println(a+" "+b+" "+c);

5.

[展开全文]

1.

import java.util.Scanner;

class h{
    public static void main(String[] args){
        int scan = new Scanner(System.in).nextInt();
        if (scan%2 != 0){
            System.out.println(scan+"是奇数");
        }else if (scan%2 ==0&&scan!=0){
            System.out.println(scan+"是偶数");
        }
    }
}

2.

int x = 1;
for (int a=1;a<=5;a++){
    x=x * (a+1);
}
System.out.println(x);

3.

long finalx = 0;
int x=1;
for (int b =1;b<=5;b++) {
    for (int a = 1; a <= b; a++) {
        x = x * (a + 1);
    }
    finalx +=x;
}
 System.out.println(finalx);

4.

[展开全文]

int x =5; y=6; z;

z=++x (6)+ y++(6/7)=12

z=++x (7)+ x++(7/8) =14

x= ++x (9)+ x++(9/10)=18

z=x>y?++x : y++   =19

 

[展开全文]

dos命令

d  :切换盘符

dir  :列出当前目录所有文件

md  :创建文件夹

rd  :删除文件夹

cd  :打开文件夹

tab  :自动补全

.  当前目录    ..  上一个目录

cd \或者  cd\  退回到根目录

del a.txt del *.txt

del 目录  表示删除目录下的所有文件

 

 

[展开全文]

循环语句

 while循环
     while(布尔表达式){
             //循环体
      }
do..while循环
       do{
            //循环体
       }while(布尔表达式);

for 循环
       for(初始化语句;判断条件语句;更新语句){
       //循环体
       }

[展开全文]

授课教师

问问题加入A计划,有专门负责答疑的老师哦!!!

课程特色

下载资料(1)
视频(98)