![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java学习笔记
文章平均质量分 50
Forever_Sc
github: https://github.com/ForeverSc
展开
-
Java学习笔记(一)——JAVA中关于对象数组的定义与使用
JAVA中关于对象数组的定义与使用首先看下列代码Student student[]=new Student [20]; //注意必须重新给数组中的每个对象分配内存空间 for(int i=0;i<20;i++) student[i]=new Student(); for(int i=0;i<20;i++) { student[i].set_sname(i);原创 2015-04-26 12:54:54 · 1852 阅读 · 0 评论 -
Java学习笔记(二)——关于使用基础类的技巧
前几天在用C++的 类库SDL写跑酷小游戏的时候,有个问题一直困扰着我。bool check_collision(Persons man,Barrier things){ int leftA, leftB; int rightA, rightB; int topA, topB; int bottomA, bottomB; leftA = man.off原创 2015-04-27 19:53:41 · 659 阅读 · 0 评论 -
Java学习笔记(三)——关于Scanner类在读取字符是跳过的问题
System.out.print("input numbers of the company :"); Numbers=scanner.nextInt(); Company company; company=new Company(Numbers); company.input(); ObjectOutputStream file=new ObjectOutputStream原创 2015-05-25 19:28:47 · 3119 阅读 · 0 评论