一、基础篇 1.不借助第三者实现两个变量值的交换:package basic;import java.util.Scanner;public class ExchangeValue { public static void main(String[] args) { Scanner scan = ....
分类:
编程语言 时间:
2015-05-13 21:30:42
阅读次数:
182
1 System.Array类和System.collections.ArrayList类示例:控制台程序,新疆三个类,抽象类Animal以及两个继承类Cows和ChickenAnimal.cspublic abstract class Animal { protected ...
PS: 开始ACM的受虐!site:http://acm.acmcoder.com/listproblem.php一、1000import java.util.Scanner;public class Main { public static void main(String args[]) { ....
分类:
其他好文 时间:
2015-05-13 21:22:06
阅读次数:
165
软件编程总原则:低耦合,高内聚一、设计模式中类的关系1.1.依赖:Java中表现为:类A使用类B,其中类B是作为类A的方法参数,方法中的局部变量或者静态方法调用。[code]public class People{ public void read(Book book){ System.out.pr...
分类:
其他好文 时间:
2015-05-13 21:14:47
阅读次数:
150
class Program { static void Main(string[] args) { long val = 123456789; Console.WriteLine(Parse64Encode(val)); ...
分类:
其他好文 时间:
2015-05-13 21:13:35
阅读次数:
199
public static class IdCardHelper { static readonly int[] Weight = new int[] { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 }; ...
分类:
其他好文 时间:
2015-05-13 21:12:01
阅读次数:
129
namespace MinZheng{class Program{static void Main(string[] args){//创建对象1,赋值Person person = new Person("张三",25,XingBie.男,false,null);//创建对象2,赋值Person p...
分类:
其他好文 时间:
2015-05-13 21:11:35
阅读次数:
119
------http://www.itheima.com"
target="blank">Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------
1.Class
.class文件加载到内存中就是一个Class对象
获取Class对象的方式有3种:
Class.forName();
类名.class...
分类:
其他好文 时间:
2015-05-13 19:57:33
阅读次数:
135
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Entity{ [Serializable()] public class UserInfo{ public str...
分类:
其他好文 时间:
2015-05-13 19:37:08
阅读次数:
122
摘抄1、首先定义一个邮件的数据结构类public class EmailData() { String from = null;//发件人String[] recipients = null;//收件人,可以多个String subject = null;//邮件主题String content =...
分类:
编程语言 时间:
2015-05-13 19:29:28
阅读次数:
126