摘要: @Test public void testAdd(){ Calculator calculator = new Calculator(); int result = calculator.add(1,2); Assert.assertEquals(3, result); } 用断言 Assert. 阅读全文
posted @ 2020-06-10 01:17 strongswan 阅读(72) 评论(0) 推荐(0)
摘要: 插入排序类似排序手中的扑克牌: 伪代码: 1 package com.algorithms; 2 public class TestInsertion { 3 public static void main(String[] args) { 4 int[] arr = {5, 2, 4, 6, 1, 阅读全文
posted @ 2020-05-28 20:32 strongswan 阅读(66) 评论(0) 推荐(0)