10 2023 档案
java:String的getBytes()方法
摘要:1、String.getBytes方法:获取该编码格式的字符 在Java中,String的getBytes()方法是得到一个操作系统默认的编码格式的字节数组。这个表示在不同的OS下,返回的东西不一样。 String.getBytes(String decode)方法会根据指定的decode编码返回某
阅读全文
pom.xml/maven包
摘要:Junit :测试 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> </dependencies> 写在
阅读全文
求最大公约数的三种方法:
摘要:第三方库:在mvn中央仓库(mvnrepository.com)中搜索Commons MathMaven Repository: Search/Browse/Explore (mvnrepository.com)将Apache Commons Math 依赖文本加到项目pom.xml中Maven编译
阅读全文
C语言:‘for‘ loop initial declarations are only allowed in C99 mode
摘要:求最大公约数之 穷举法 mistake: because: 只允许在C99模式下使用‘for’循环初始化声明 solution:不在for()中初始化生命变量
阅读全文