码迷,mamicode.com
首页 >  
搜索关键字:maybe not public    ( 83099个结果
集合存null测试
问题 1.List、LinkedList、Vector可以存null吗? 2.HashSet、TreeSet可以存null吗? 3.HashMap、TreeMap、Hashtable可以存null吗? 测试代码 public class TestNull { public static void m ...
分类:其他好文   时间:2020-12-30 11:28:59    阅读次数:0
深入分析 string.intern() 方法
作者:Mazin 来源:my.oschina.net/u/3441184/blog/887152 首先我们来看一段代码: public class InternTest { public static void main(String[] args) { String str1 = new Stri ...
分类:其他好文   时间:2020-12-30 11:23:27    阅读次数:0
59. 螺旋矩阵 II
题目: 给定一个正整数 n,生成一个包含 1 到 n2 所有元素,且元素按顺时针顺序螺旋排列的正方形矩阵。 示例: 输入: 3 输出: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ] 代码: 1 class Solution { 2 public int[][] ...
分类:其他好文   时间:2020-12-30 10:52:55    阅读次数:0
java实现文件移动
import java.io.*; public class TIME { public static void main(String[] args) { File oldName = new File("路径/test.png"); File newName = new File(System. ...
分类:移动开发   时间:2020-12-30 10:46:56    阅读次数:0
Newton.Json中JsonConverter的使用
一、使用场景: 有两个类都继承了同一个抽象类: /// <summary> /// 沙盒基类 /// </summary> abstract class SandBoxGanmeBase { /// <summary> /// 名称 /// </summary> public string Name ...
分类:Web程序   时间:2020-12-30 10:42:50    阅读次数:0
Gradle脚本部署SpringBoot应用到远程服务器
引入hidetake.ssh插件 buildscript { repositories { mavenLocal() maven { url "https://maven.aliyun.com/repositorys/public/" } maven { url "https://repo.spri ...
分类:编程语言   时间:2020-12-30 10:40:15    阅读次数:0
二维数组小练习 打印 杨辉三角
` public class YanghuiTest { public static void main(String[] args) { int[][] yh = new int[10][]; for(int i=0;i<yh.length;i++){ yh[i] = new int[i+1]; ...
分类:编程语言   时间:2020-12-29 11:52:33    阅读次数:0
四棱坠
package 随堂; public class 四棱坠 { public static void main(String[] args) { // TODO Auto-generated method stub for (int i = 1; i <= 10; i++) { for (int j ...
分类:其他好文   时间:2020-12-29 11:35:46    阅读次数:0
关于数据库表格,Dapped怎么实现一对多的调用,和数据的无线存储
一对一和一对多,使用书本、作者、书签 作为示例: 一本书只有一个作者,并且有多条书签 实体类: public class BookMark { public int Id { get; set; } public int BookId { get; set; } public virtual str ...
分类:移动开发   时间:2020-12-29 11:20:21    阅读次数:0
[转]Epplus 导出Excel 示例
部分内容比较生硬,还需要继续优化 public static ExcelWorksheet CreateExcel3<T>(ExcelPackage package, string sheetName, string title, string[] titles, IEnumerable<T> ax ...
分类:其他好文   时间:2020-12-29 11:20:04    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!