Java-数据结构-LinkedList链表


LinkedList实现:package cn.meowrain.Datastructure.collection;public class LinkedList<E> { //链表的头结点,用于连接之后的所有结点 private final Node<E> he

Javascript-对象序列化


const stu1 = { name: "xiaoming", age: 18, friend: { name: "mike", age: 17, },};const stu1_json = JSON.stringify(stu1); /

Javascript-面向对象


Javascript 面向对象(OOP)语法class 类名 { constructor(){ }}举例://Person类专门用来创建人的对象class Person { constructor(name,age,hooby){ this.name = name;

Javascript-三种包装对象


let num = 10; console.log(typeof num.toString()); // string let str = "hello world"; console.log(str.split(" &quo

Javascript-对象拷贝


两种对象拷贝 let stu = { name: "meow", age: 17, friend: { name: "mike",

Javascript-原始类型和引用类型


//原始类型 let addr_name = "beijing"; let addr_name2 = addr_name; addr_name = "jinan"; console.log

Java-冒泡排序


package sort;import java.util.Arrays;//冒泡排序模板public class bubble_sort { public static void main(String[] args) { int[] arr = {44,-30,20,100,

Java-选择排序


package sort;import java.util.Arrays;//选择排序模板public class select_sort { public static void main(String[] args) { int[] arr = new int[]{10,20

Java-插入排序


package sort;import java.util.Arrays;public class insert_sort { public static void main(String[] args) { int[] arr = new int[]{1, 10, -5, 12

Java-Math类

笔记  Java 

package cn.meowrain.Math;public class math { public static void main(String[] args) { //1. abs绝对值 int abs = Math.abs(-19); Sys