转载:http://stevencjh.blog.163.com/blog/static/1218614612010101775336729/ swing布局管理器简介 一 。BorderLayout布局管理器:BorderLayout 也是一种非常简单的布局策略,它把容器内的空间简单地划分为东、西 ...
static Use the static modifier to declare a static member, which belongs to the type itself rather than to a specific object. The static modifier can ...
分类:
其他好文 时间:
2016-04-04 10:23:46
阅读次数:
230
本实例将输出一个"Hello,world" 例如 源码如下: public class Helloworld{ public static void main(String []args) { System.out.println("Hello,world"); } } ...
分类:
其他好文 时间:
2016-04-04 00:01:22
阅读次数:
135
本实例使用java语句输出一个由"*"组成的三角形 例如: 源码如下 public class Test2 { public static void main(String []args) { System.out.println(" *"); System.out.println(" ***"); ...
分类:
其他好文 时间:
2016-04-03 23:57:42
阅读次数:
172
本实例用于字母大小写之间的转换 源代码如下: import java.util.*; public class Test5{ { public static void main(String []args) { Scanner in=new Scanner(System.in); System.ou ...
分类:
其他好文 时间:
2016-04-03 23:46:36
阅读次数:
144
本实例输出计算机各类类型支持的最大最小数值 例如 源码如下: public class Max { public static void main(String[]args) { int int_max=Integer.MAX_VALUE; int int_min=Integer.MIN_VALUE ...
分类:
其他好文 时间:
2016-04-03 23:36:35
阅读次数:
200
原文链接:http://www.orlion.ga/781/ 一、 多目标文件的链接 假设有两个文件:stack.c: 上边这个文件实现了栈。main.c: 这个文件是使用了栈,编译:gcc main.c stack.c -o main,也可以分步编译: 用nm命令查看目标文件的符号表,会发现mai ...
分类:
其他好文 时间:
2016-04-03 21:58:50
阅读次数:
169
namespace _01变量{ class Program { static void Main(string[] args) { int number; //定义一个叫number的变量 (声明变量的语法格式: 数据类型 变量名;) number = 1000; //并且给变量number赋值1 ...
分类:
其他好文 时间:
2016-04-03 18:58:47
阅读次数:
136
ConcurrentBag<T>与List<T> 我遇到的一个情况是: using System.Collections.Concurrent; class WX { public string wxNo; public string wxPsw; } static public bool Read ...
分类:
Windows程序 时间:
2016-04-03 18:58:40
阅读次数:
1118
const和static的区别 const ——只读, 只在声明中使用 1 const int num = 10; 2 int const num = 10; num变量只读, 不能修改 1 const int arr[4] = {10, 20, 30, 40 }; 2 int const arr[ ...
分类:
其他好文 时间:
2016-04-03 17:21:59
阅读次数:
193