使用组件 MongoDB.Driver 插入数据 class Program { static void Main(string[] args) { AddWorkerToMongo(); } static void AddWorkerToMongo() { var client = new Mon ...
分类:
数据库 时间:
2021-05-24 09:44:03
阅读次数:
0
####1.java的方法类似于其他语言的函数,用来完成特定功能的代码片段。 定义方法的语法: 修饰符:可选。告诉编译器如何调用这个方法,定义了该方法的访问类型。 返回值类型:如果方法有返回值,该方法需要定义方法的返回值的类型。如果没有返回值,类型为关键字void。 方法名:方法的实际名字。 参数类 ...
分类:
编程语言 时间:
2021-05-24 09:07:07
阅读次数:
0
Markdown快速入门(typora) 1、代码块: // 代码块语法 ?```Java(语言类型) ?```shell 1.java代码块 public class HelloWorld { public static void main(String []args) { System.out. ...
分类:
其他好文 时间:
2021-05-24 08:54:58
阅读次数:
0
关键思路从后往前合并 class Solution { public void merge(int[] nums1, int m, int[] nums2, int n) { int idxm=m-1; int idxn=n-1; int sum=m+n-1; while(idxm>=0&&idxn ...
分类:
移动开发 时间:
2021-05-24 08:38:40
阅读次数:
0
命令模式 public interface Command { void execute(); } ? public class CommandA implements Command{ public void execute() { System.out.println("a执行了"); } } ...
分类:
其他好文 时间:
2021-05-24 08:31:58
阅读次数:
0
服务端 public static void main(String[] args) { ServerSocket serverSocket = null; Socket socket = null; InputStream inputStream = null; ByteArrayOutputSt ...
分类:
编程语言 时间:
2021-05-24 08:23:25
阅读次数:
0
Cpp primer plus notes ch2. get start #include 预处理器编译指令。 using namespace 编译指令。 void关键字显示说明不接受任何参数。 //myfirst.cpp #include <iostream> int main(void) { u ...
分类:
其他好文 时间:
2021-05-24 08:11:29
阅读次数:
0
#include <stdio.h> int main (void) { signed short int a1;//有符号short unsigned short int a2;//无符号short signed int b1; unsigned int b2; signed long int c ...
分类:
编程语言 时间:
2021-05-24 08:09:05
阅读次数:
0
i++:先引用后加 ++I:先加后引用 示例代码: public static void main(String... args) { int a = 88; int c = a++; System.out.println(a); System.out.println(c); int b = 99; ...
分类:
其他好文 时间:
2021-05-24 08:08:47
阅读次数:
0
List接口 三大特点:1.有序的collection,2.有索引,3.允许存储重复元素 有序:存储与取出元素顺序是一致的 List接口中常用的方法 public void add (int index,E element) 将指定元素,添加到该集合中指定位置上 public E get(int i ...
分类:
编程语言 时间:
2021-05-24 07:55:05
阅读次数:
0