摘要: 1. /*可变参数只能有一个,并且只能排在形式参数的最后,其本质上是数组。 public class KeBianCanShu { public static void main(String[] args) {printMax(10,10.1,90.1,50.2);//以数组的形式传递参数prin 阅读全文
posted @ 2021-12-21 19:33 等风来ysh 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-21 19:04 等风来ysh 阅读(12) 评论(0) 推荐(0)
摘要: package com.kuang.XunHuan;//思路:1.先确定要循环几层,把最外部的循环写出来 2.里面的循环分成两部分,一部分循环输出空格,一部分循环输出*号public class TestDemo { public static void main(String[] args) { 阅读全文
posted @ 2021-12-21 16:33 等风来ysh 阅读(115) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { int number[]={10,20,30,40,50}; for (int x:number){ System.out.println(x); } String str[]={"张三","李四","王五"}; fo 阅读全文
posted @ 2021-12-21 14:16 等风来ysh 阅读(30) 评论(0) 推荐(0)
摘要: IDEA 快捷键 快捷输出 sout 快捷输出system.out.println 100.for 相当于 for(int i=0;i<100;i++)循环 多行注释 ctrl+shift+/多行注释,多按一次取消多行注释 ctrl+/单行注释 阅读全文
posted @ 2021-12-21 14:10 等风来ysh 阅读(16) 评论(0) 推荐(0)