摘要:
import java.util.Scanner; public class Practise { public static void main(String[] args) { Scanner scanner = new Scanner(System.in);//创建一个对象用于接收数据 Sys 阅读全文
摘要:
public static void main(String[] args) { //打印心型 for (int i=1;i<=6;i++){//赋予代码的行值 for (int j=1;j<=i;j++){//赋予代码每一列的值 System.out.print(" "); } for (int 阅读全文
摘要:
while循坏 public static void main(String[] args) { int x=1;//定义行和列 int y=1; while (x <= 9) { //x进行循坏 y = 1; while (y <= x) { //y进行循坏 System.out.print(y 阅读全文
摘要:
if练习题 if双选择 题目:判断两个数字是否大于等于50,如果true,则输出结果 代码: int a=9;//赋值 int b =5; int sum=a+b; if (sum>=50){//总和大于一个数则输出的结果 System.out.println("hello world!"); } 阅读全文
摘要:
看到这篇博客要看到最后小小的祝福哟。 自增与自减(仅个人的小理解)public class Demo02 { public static void main(String[] args) { //++ --自增 自减 int a=3; int b =a++;//执行这个程序后,对b进行赋值,然后在自 阅读全文