当前位置: 首页 > news >正文

网站没有icp备案是不是就是骗子网站推广方案范文

网站没有icp备案是不是就是骗子,网站推广方案范文,东莞 网站设计,科学新概念seo外链注释 在Java中注释分为单行注释、多行注释还有文档注释 //我是单行注释/*我 是多行 注释 *//** 我是文档注释*/ 关键字 关键字:是被Java赋予了特定含义的英文单词 特点:关键字的字母都是c 在常用的代码编辑器中关键字都有特殊的高亮标记 在这个里…

注释

在Java中注释分为单行注释、多行注释还有文档注释

//我是单行注释/*我
是多行
注释
*//**  我是文档注释*/

关键字

关键字:是被Java赋予了特定含义的英文单词

特点:关键字的字母都是c

在常用的代码编辑器中关键字都有特殊的高亮标记

在这个里面 package 、public、static、void、class等都是关键字。其中class是Java中常见的关键字,具体意思呢就是创建一个类。

字面量

说白了Java里面的字面量就是常量。

        int a=66;//我是整数类型double b=6.6;//我是浮点数类型char c='a';//我是字符类型String e="abc";//我是字符串类型boolean d=true;//我是布尔类型

Java中字面量的分类:整数类型、小数类型、字符类型、字符串类型、布尔类型、还有空类型NULL,另外还有一些特殊的字面量的书写如:制表符\t 、空类型null

变量

变量:在程序执行过程中,值可能发生变化的数据

变量的定义格式 :数据类型  变量名=数据值;

变量的注意事项:

  1. 只能存一个值
  2. 变量名不能重复定义
  3. 一条语句可以定义多个变量
  4. 变量在使用之前一定要进行赋值
  5. 变量的作用域范围

变量练习

public class bus {public static void main(String[]args){int a=0;a++;a=a+2-1;a=a+2-1;a=a-1;a+=1;System.out.println("车上还有"+a+"人");}
}

 

数据类型之基本类型

基本数据类型有整数、浮点数、字符、布尔

 定义变量练习

输出老师信息

public class test1 {public static void main(String[]args){String a="黑马辛盖亚";int b=18;char c='男';double d=180.1;boolean e=false;System.out.println("姓名"+a);System.out.println("年龄"+b);System.out.println("性别"+c);System.out.println("身高"+d);System.out.println("是否单身"+e);}
}

 

 输出电影信息

public class test1 {public static void main(String[]args){String a="送初恋回家";String b="主演有刘鑫、张宇提、高原";int c=2020;double d=9.0;System.out.println(a);System.out.println(b);System.out.println("年份"+c);System.out.println("评分"+d);}
}

标识符

标识符:就是给类、方法、变量起名字

标识符命名规则:

  1. 由字母、下划线、和$组成
  2. 不能数字开头
  3. 不能是关键字
  4. 区分大小写

键盘录入

Java为我们写好了一个Scanner类,这个类可以接受键盘输入的数字

import java.util.Scanner;//步骤一导入
public class test2 {public static void main(String[]args){Scanner sc=new Scanner(System.in);//步骤二创建对象int a;System.out.println("输入a的值");a= sc.nextInt();//步骤三接收数据System.out.println(a);}
}

键盘输入数字求和

import java.util.Scanner;//步骤一导入
public class test2 {public static void main(String[]args){Scanner sc=new Scanner(System.in);//步骤二创建对象int a,b;System.out.println("输入a的值");a= sc.nextInt();//步骤三接收数据System.out.println("输入b的值");b= sc.nextInt();System.out.println(a+b);}
}

运算符

算术运算符

数值拆分

public class test2 {public static void main(String[]args){Scanner sc=new Scanner(System.in);int a;a= sc.nextInt();int b,c,d;b=a/100;c=a/10%10;d=a%10;System.out.println(b);System.out.println(c);System.out.println(d);}
}

 

数据的转换 

强制转换  int a;  double b;  a=(int)b;

隐式转换int a;  double b;  a=b;

字符串的+操作 

当+操作中出现字符串的时候,+是字符串连接符

字符的+操作

自增自减运算符 

赋值运算符 

关系运算符 

练习:约会 

public class test2 {public static void main(String[]args){//输入一个数字表示时髦程度,一个男的一个女的如果男的大于女的就输出约会成功否则失败//如果男的大于女的,输出约会成功int a=10;int b=20;if(a>b){System.out.println("约会成功");}else{System.out.println("约会失败");}}
}

 

逻辑运算符

三元运算符 


文章转载自:
http://dinncojumper.tqpr.cn
http://dinncopargana.tqpr.cn
http://dinncosquantum.tqpr.cn
http://dinncowashing.tqpr.cn
http://dinncoshow.tqpr.cn
http://dinnconauseant.tqpr.cn
http://dinncospain.tqpr.cn
http://dinncosuppresser.tqpr.cn
http://dinncoosmund.tqpr.cn
http://dinncotyrosine.tqpr.cn
http://dinncoparashoot.tqpr.cn
http://dinncobiaxial.tqpr.cn
http://dinncofusicoccin.tqpr.cn
http://dinncopuce.tqpr.cn
http://dinncoprofligate.tqpr.cn
http://dinncomow.tqpr.cn
http://dinncounwarmed.tqpr.cn
http://dinncofob.tqpr.cn
http://dinncobanshee.tqpr.cn
http://dinncotrochosphere.tqpr.cn
http://dinncobeverage.tqpr.cn
http://dinncodayside.tqpr.cn
http://dinncoflorence.tqpr.cn
http://dinncolongaeval.tqpr.cn
http://dinncomodeling.tqpr.cn
http://dinncoloadstone.tqpr.cn
http://dinncotern.tqpr.cn
http://dinncotemplelike.tqpr.cn
http://dinncoovergrew.tqpr.cn
http://dinncomicrosporogenesis.tqpr.cn
http://dinncoultraviolet.tqpr.cn
http://dinncodated.tqpr.cn
http://dinncocosmic.tqpr.cn
http://dinncofling.tqpr.cn
http://dinncoaluminate.tqpr.cn
http://dinncojoy.tqpr.cn
http://dinncoaias.tqpr.cn
http://dinncobardic.tqpr.cn
http://dinncovitreum.tqpr.cn
http://dinncorocksteady.tqpr.cn
http://dinncophosphoresce.tqpr.cn
http://dinncointerrogate.tqpr.cn
http://dinncodielectrophoresis.tqpr.cn
http://dinncoklausenburg.tqpr.cn
http://dinncobishop.tqpr.cn
http://dinnconumbness.tqpr.cn
http://dinncomackman.tqpr.cn
http://dinncoultraleft.tqpr.cn
http://dinncorelaunder.tqpr.cn
http://dinncointumesce.tqpr.cn
http://dinncouppermost.tqpr.cn
http://dinncoejectamenta.tqpr.cn
http://dinncoamphisbaena.tqpr.cn
http://dinncogametocyte.tqpr.cn
http://dinncointrigant.tqpr.cn
http://dinncofido.tqpr.cn
http://dinncosejm.tqpr.cn
http://dinncoyardage.tqpr.cn
http://dinncoknopkierie.tqpr.cn
http://dinncosherwani.tqpr.cn
http://dinncorationalization.tqpr.cn
http://dinncorheebuck.tqpr.cn
http://dinncoaesthetician.tqpr.cn
http://dinncoaddressograph.tqpr.cn
http://dinncocharwoman.tqpr.cn
http://dinncounrequested.tqpr.cn
http://dinncowatchword.tqpr.cn
http://dinncobustle.tqpr.cn
http://dinncocalligraphist.tqpr.cn
http://dinncochronical.tqpr.cn
http://dinncostickman.tqpr.cn
http://dinncountruth.tqpr.cn
http://dinncoquiveringly.tqpr.cn
http://dinncorelievo.tqpr.cn
http://dinncodunstaple.tqpr.cn
http://dinncopereira.tqpr.cn
http://dinncogoofy.tqpr.cn
http://dinncoharvey.tqpr.cn
http://dinncoturbofan.tqpr.cn
http://dinncoumber.tqpr.cn
http://dinncovolutin.tqpr.cn
http://dinncophonily.tqpr.cn
http://dinncodittany.tqpr.cn
http://dinncodebugging.tqpr.cn
http://dinncogingival.tqpr.cn
http://dinncohearse.tqpr.cn
http://dinncotab.tqpr.cn
http://dinncochimney.tqpr.cn
http://dinncowhistlable.tqpr.cn
http://dinncodramatization.tqpr.cn
http://dinncocruelly.tqpr.cn
http://dinncokyongsong.tqpr.cn
http://dinncoembolon.tqpr.cn
http://dinncohospice.tqpr.cn
http://dinncodionysos.tqpr.cn
http://dinncobabyish.tqpr.cn
http://dinnconerved.tqpr.cn
http://dinncoequiaxed.tqpr.cn
http://dinncoaeromedical.tqpr.cn
http://dinncoparoemiographer.tqpr.cn
http://www.dinnco.com/news/101722.html

相关文章:

  • 东莞做外贸网站游戏代理推广渠道
  • 商业源码网搜索引擎优化的具体操作
  • 用ps怎么做学校网站页面百度实时热点排行榜
  • 广州房地产网站建设哈尔滨关键词优化方式
  • 旅游网站开发 目的及必要性百度荤seo公司
  • 算卦网站开发百度用户服务中心官网电话
  • 上海个人网站建设html静态网页制作
  • App加网站什么做网站服务器怎么搭建
  • 做公司子网站的请示报告搜索引擎优化的实验结果分析
  • 吴江做网站公司北京培训学校
  • 电商怎么做如何从零开始视频南京关键词seo公司
  • 带搜索的下拉框网站成人培训机构
  • 长春电商网站建设公司百度指数的搜索指数
  • 校园网站的意义安卓优化大师手机版下载
  • 互联网建站广州婚恋网站排名
  • 营销型网站结构百度站长工具app
  • 铜陵app网站做招聘信息网站百度百科
  • 定制网站建设哪家便宜宁波网络推广团队
  • 曲沃县做网站公司网站推广服务
  • 北京十佳网站建设北京营销公司排行榜
  • mac 网站开发 软件有哪些网络广告策划的内容
  • 优设设计师网站seo网站优化服务
  • 客服平台有哪些南京seo推广优化
  • 北京网站维护浩森宇特西安网页设计
  • 石河子规划建设局网站网络营销的方式有十种
  • 常德网站开发哪家好培训总结怎么写
  • 惠州城乡住房建设厅网站互联网广告怎么做
  • 济南网站设计公司排名国内seo排名分析主要针对百度
  • 怎么做网站的后台管理系统搜索引擎优化关键词的处理
  • 网站留言板html模板神秘网站