
Java
文章平均质量分 92
weixin_45344252
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
(借助栈)二叉树中序非递归遍历
#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>typedef struct treeNode{ int data; struct treeNode* rChild; struct treeNode* lChild;}tree, *BinTree;typedef stru...原创 2020-04-30 21:22:57 · 310 阅读 · 0 评论 -
文件
1.File类import java.io.File;public class Main{ public static void main(String[] args)throws Exception { File file=new File("F:"+File.separator+"JavaSE"+File.separator+"JaveEdu"+File.separator+"...原创 2020-04-30 21:06:33 · 139 阅读 · 0 评论 -
异常
import java.io.IOException;class myMath{ public static int div(int x,int y) throws ArithmeticException,NullPointerException//声明可能抛出的异常,该方法的调用者要处理这些异常 { String s=null; System.out.println(s.equ...原创 2020-04-30 14:46:27 · 136 阅读 · 0 评论 -
线程类
class MyThread extends Thread//定义线程类{ private String name; public MyThread(String name) { this.name=name; } public void run()//覆写run方法 { for(int i=0;i<10;i++) { System.out.prin...原创 2020-04-30 14:41:33 · 127 阅读 · 0 评论 -
泛型类和泛型接口
class Message<T extends Number>{ public T info; public T getInfo() { return this.info; } public void setInfo(T info) { this.info=info; }}public class TestDemo{ public static ...原创 2020-04-30 14:22:08 · 134 阅读 · 0 评论