上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 78 下一页
摘要: package day4; //字数统计 import java.util.Scanner; public class StringDemo3 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); 阅读全文
posted @ 2022-03-13 18:49 木子欢儿 阅读(1425) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form method="get" action="https://www.baidu.com/s? 阅读全文
posted @ 2022-03-12 20:17 木子欢儿 阅读(38) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-12 19:31 木子欢儿 阅读(298) 评论(0) 推荐(0) 编辑
摘要: package learnjava; //反转数组元素 public class demo14 { public static void main(String[] args) { int []arr={19,28,37,46,50}; for (int start=0,end= arr.lengt 阅读全文
posted @ 2022-03-09 11:30 木子欢儿 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 问题: 从键盘中输入一个值,在数组中查找该值的索引并输出 代码: package learnjava; import java.util.Scanner; public class demo13 { public static void main(String[] args) { int []arr 阅读全文
posted @ 2022-03-09 11:12 木子欢儿 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 问题: 鸡翁一,值钱五,鸡母一,值钱三,鸡雏三,值钱一,百钱买百鸡,问翁、母、雏各几何? 代码: package learnjava; public class demo10 { public static void main(String[] args) { for (int x=0;x<=20; 阅读全文
posted @ 2022-03-09 10:30 木子欢儿 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第3个月后每个月都生一对兔子,假如兔子不死,第十二个月的兔子对数是多少? public class tuzi { public static void main(String[] args) { int []arr=new int[20]; 阅读全文
posted @ 2022-03-08 20:33 木子欢儿 阅读(40) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML> <style type="text/css"> body{ font-family: 'Courgette', cursive; } body{ background:#f3f3e1; } .wrap{ margin:0 auto; width:1000px; } . 阅读全文
posted @ 2022-03-06 15:48 木子欢儿 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 分钟和小时的范围 分钟: 0<=minute<60 小时: 0<=hour<24 代码 public class Main { public static void main(String[] args) { for (int hour=0;hour<=24;hour++){ for (int mi 阅读全文
posted @ 2022-03-03 10:45 木子欢儿 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 利用Centos 7内置的 crontab 进行系统的定时关机 格式: * * * * * command 分 时 日 月 周 命令 #编辑定时任务: crontab -e #查看定时任务列表: crontab -l #查看定时任务执行情况: tail -f /var/log/cron 设置定时关机 阅读全文
posted @ 2022-02-24 09:20 木子欢儿 阅读(389) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 78 下一页