摘要:
package com.itheima; public class forDemo01 { public static void main(String[] args) { int count=0; for (int i=1;i<=5;i++) { System.out.println("打印信息" 阅读全文
摘要:
public class ifDemo08 { public static void main(String[] args) { int a=10; int b=20; int c=30; System.out.println(a>b&&a>c); System.out.println(a>b||a 阅读全文
摘要:
public class ifDemo01 { public static void main(String[] args) { boolean isgreen=true; isgreen=false; if(isgreen){ System.out.println("绿灯行"); } } } 阅读全文
摘要:
public class ifDemo07 { public static void main(String[] args) { int a=10; int b=20; int mx= a>b?a:b; System.out.println(mx); } } 阅读全文
摘要:
public class variable_test06 { public static void main(String[] args) { System.out.println(1+99); System.out.println("itheima"+1+99); System.out.print 阅读全文
摘要:
public class variable_test05 { public static void main(String[] args) { int number=123; //得到个位数 int gewei=number %10; //得到十位数 int shiwei=number /10%10 阅读全文
摘要:
/* 变量使用的注意事项 1、同一个范围即一个中括号内,变量名不能重复 2、变量为未赋值不能使用 3、定义long类型,数据后面加L 4、定义float类型,数据后面加f * */ public class variable_test03 { public static void main(Stri 阅读全文
摘要:
public class variable_test04 { public static void main(String[] args) { int a=6; int b=4; System.out.println(a*b);//24 System.out.println(a/b);//1.5 S 阅读全文
摘要:
public class variable_test02 { public static void main(String[] args) { // 定义变量 String name="风清扬"; int age=18; char gender='男'; double temperature=36. 阅读全文
摘要:
import com.sun.scenario.effect.impl.sw.java.JSWBlend_SRC_OUTPeer; import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput; import com.sun.xml.interna 阅读全文