上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: import java.util.*;public class lianxi4 { public static void main(String[] args) { Scanner input =new Scanner(System.in); System.out.println("请输入一个正整数 阅读全文
posted @ 2021-10-19 23:10 热爱代码的某人 阅读(21) 评论(0) 推荐(0)
摘要: package sqldemo; import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.State 阅读全文
posted @ 2021-10-18 23:16 热爱代码的某人 阅读(19) 评论(0) 推荐(0)
摘要: Tomcat介绍Tomcat 服务器是一个免费的开放源代码的Web 应用服务器,属于轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选。对于一个初学者来说,可以这样认为,当在一台机器上配置好Apache 服务器,可利用它响应HTML(标准通用标记语 阅读全文
posted @ 2021-10-17 22:33 热爱代码的某人 阅读(31) 评论(0) 推荐(0)
摘要: 将一个正整数分解质因数。(1)如果这个质数恰等于n,则说明分解质因数的过程已经结束,打印出即可。(2)如果n<>k,但n能被k整除,则应打印出k的值,并用n除以k的商,作为新的正整数你n,重复执行第一步。(3)如果n不能被k整除,则用k+1作为k的值,重复执行第一步。 import java.uti 阅读全文
posted @ 2021-10-16 23:15 热爱代码的某人 阅读(30) 评论(0) 推荐(0)
摘要: public class Example3 { public static void main(String args[]){ int a,sum; //表示100~999 int i,j,k;//分别表示百位、十位、各位 for(a=100;a<=999;a++){ i=a/100; j=(a-i 阅读全文
posted @ 2021-10-15 23:09 热爱代码的某人 阅读(24) 评论(0) 推荐(0)
摘要: mport java.util.HashSet;import java.util.Set; public class Test {public static void main(String args[]) throws Exception{ Integer[] SameArray=new Inte 阅读全文
posted @ 2021-10-14 23:08 热爱代码的某人 阅读(22) 评论(0) 推荐(0)
摘要: 从小到大 int[] arr = {5,2,66,3,7}; int temp; for(int i=0;i<arr.length;i++){ for(int j=0;j<arr.length-i-1;j++){ if(arr[j]>arr[j+1]){ temp = arr[j]; arr[j] 阅读全文
posted @ 2021-10-13 23:08 热爱代码的某人 阅读(33) 评论(0) 推荐(0)
摘要: package test04; public class test04 { public static void main(String[] main) { int[] array={63,4,24,1,3,15}; for(int i=1;i<array.length;i++) { for(int 阅读全文
posted @ 2021-10-12 22:51 热爱代码的某人 阅读(19) 评论(0) 推荐(0)
摘要: package test03;import java.util.Scanner;public class test03 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.p 阅读全文
posted @ 2021-10-11 20:02 热爱代码的某人 阅读(34) 评论(0) 推荐(0)
摘要: package test02;public class test02{public static void main(String[] args) { int count=0; for (int i = 101; i <200 ; i++) { for (int j = 2; j <i ; j++) 阅读全文
posted @ 2021-10-10 22:24 热爱代码的某人 阅读(25) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页