随笔分类 -  java复习

摘要:有关ArrayList参见菜鸟教程 https://www.runoob.com/java/java-arraylist.html 代码不敲了 很简单 这个也是 太水了 不敲了 阅读全文
posted @ 2020-12-20 12:09 然终酒肆 阅读(73) 评论(0) 推荐(0) 编辑
摘要:没空敲了 代码是别人的轮子 稍微改了改 把单链表全实现了 package Test; public class Linked <T>{ private class Node{ private T t; private Node next; public Node(T t,Node next){ th 阅读全文
posted @ 2020-12-20 10:30 然终酒肆 阅读(71) 评论(0) 推荐(0) 编辑
摘要:package Test; public class test0 { static final int SLOW = 1;//三个名为SLOW,MEDIUM,FAST而值为1,2,3的常量,表示风扇的速度。 static final int MEDIUM = 2; static final int 阅读全文
posted @ 2020-12-20 10:16 然终酒肆 阅读(102) 评论(0) 推荐(0) 编辑
摘要:package homwk; import java.util.Scanner; public class hmwk7 { public static boolean judge(int[][] b){ for(int i=0;i<b.length;i++){ for(int j=0;j<b[i]. 阅读全文
posted @ 2020-12-20 10:09 然终酒肆 阅读(69) 评论(0) 推荐(0) 编辑
摘要:import java.util.Arrays; public class ArraysSort_0 { public static void main(String args[]) { int[] a={1,0,2,4,3}; Arrays.sort(a); for(int i=0;i<a.len 阅读全文
posted @ 2020-12-16 18:54 然终酒肆 阅读(66) 评论(0) 推荐(0) 编辑
摘要:package homwk; import java.util.Arrays; import java.util.Scanner; public class hmwk6 { public static void main(String[] args) { @SuppressWarnings("res 阅读全文
posted @ 2020-12-16 17:50 然终酒肆 阅读(73) 评论(0) 推荐(0) 编辑
摘要:二分查找 主要是其中的细节 这些位置的判断 不去自己调试真的不知道。。。到了考场上如果要手写,连bug也不知道 我也不知道程序设计要笔试是什么意思 本身就是很傻的行为 考作业题 考背诵么? package Test; public class Main { public static void ma 阅读全文
posted @ 2020-12-16 11:10 然终酒肆 阅读(66) 评论(0) 推荐(0) 编辑
摘要:package Test; import java.util.Scanner; import java.text.DecimalFormat; import java.util.Random; public class Main { static DecimalFormat df = new Dec 阅读全文
posted @ 2020-12-16 10:36 然终酒肆 阅读(64) 评论(0) 推荐(0) 编辑
摘要:1. 斐波那契 package Test; import java.util.Scanner; //import java.util.*; public class Main { public static int f(int a) { if(a<0) return -1; if(a == 0) { 阅读全文
posted @ 2020-12-16 10:30 然终酒肆 阅读(86) 评论(0) 推荐(0) 编辑
摘要:递归: import java.util.Scanner; //import java.util.*; public class Main { public static String f(int base,int num){ String str=""; String wait="01234567 阅读全文
posted @ 2020-12-16 09:50 然终酒肆 阅读(123) 评论(0) 推荐(0) 编辑
摘要:import java.util.*; 阅读全文
posted @ 2020-12-13 11:37 然终酒肆 阅读(482) 评论(0) 推荐(0) 编辑
摘要:获取类功能 public class test0 { public static void main(String[] args) { String str = "anAdEfg"; System.out.println("String类的获取功能"); //获取字符串的长度 int length 阅读全文
posted @ 2020-12-13 11:32 然终酒肆 阅读(107) 评论(0) 推荐(0) 编辑
摘要:1 public class test0 { 2 3 public static void main(String[] args) 4 { 5 6 System.out.println("90 度的正弦值:" + Math.sin(Math.PI/2)); 7 System.out.println( 阅读全文
posted @ 2020-12-12 23:23 然终酒肆 阅读(132) 评论(0) 推荐(0) 编辑
摘要:用java的helloworld 我知道这是最低级的东西,总要让结构完整 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); // 输出 Hello 阅读全文
posted @ 2020-12-12 23:11 然终酒肆 阅读(44) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示