
java
u010969626
这个作者很懒,什么都没留下…
展开
-
java 讲字符串转换为字符数组
package test; public class stirngtest { public static void main(String args[]){ char a[][]=new char[21][21]; String str=new String("www.runoob.com"); System.out.println("ddd"); System.out.println(str.toCharArray()); .原创 2020-05-23 21:00:33 · 297 阅读 · 0 评论 -
java 多线程学习
Java线程的两种创建方式 注意 runnable接口的时候需要新建Thread类 package com.company; public class Thread1 implements Runnable { @Override public void run() { System.out.println("hello"); } publi...原创 2020-04-28 18:19:49 · 114 阅读 · 0 评论 -
Java求最小值
Java求最小值 import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner in=new Scanner(System.i...原创 2020-04-18 19:31:27 · 2764 阅读 · 0 评论 -
java创建对象的方法
package com.company; public class B implements Cloneable { public void hello(){ System.out.println("hello from B"); } protected Object clone() throws CloneNotSupportedException ...原创 2019-12-31 16:01:49 · 110 阅读 · 0 评论 -
java 获取当前工作路径(macOS)
package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); System.out.println(System.getPro...原创 2019-12-28 16:49:56 · 1245 阅读 · 0 评论