搜索资源列表
source2
- import java.awt.* public class BallGame extends Frame { void launchFrame(){ setSize(500, 300) setLocation(50, 50) setVisible(true) setTitle("尚学堂---张三作品") setBackground(Color.black) } public static void mai
xuexi
- 主程序 关于学生信息管理系统的 程序开发的代码- Public void jButton1_actionPerformed(ActionEvent e) { driver=jTextField1.getText() URL=jTextField2.getText() table=jTextField3.getText() name=jTextField4.getText() password=
Colleague
- 本文件功能主要通过接口继承完成信息的发送与信息的接受等功能。-public interface Colleague{ public void giveMess(String[] mess) public void receiverMess(String mess ) public void setName(String name) public String getName() }
Public-class-void-
- 选择三个字符串,找出其中的最大的值,编程如下。-The select three strings, find the maximum value, programming is as follows.
java
- 用java实现与数据库的连接..例如``有一张数据库的表``里面有几条数据``用java将数据库表内的数据显示在java的表单属性内,java怎么实现对数据库的增,删,改,查.四种方法,带注释的! -import java.sql.* public class ODBCTest { public static void main(String[] args) { Connection con = null try {
Monster
- 一个初级JAVA程序小游戏,不同的怪兽会有不同的攻击方式,满100伤害停止。- 1. The sub-questions below concern a Java application that deals with monsters. i) Create a class called Monster (to be stored in file Monster.java), such that:
JAVA-ATMA
- 简易的ATM取款机程序,实现存款,取款,查询余额,转账功能-//登陆界面 class Login { //获取登录账户ID及密码 public void show() { System.out.println("请输入账户ID:"+" "+"[0退出]") Scanner zhid =new Scanner(System.in) String str1=zhid.nextLine() if(str1.equals("0"
javaerrorone
- java自定义异常实例(一)。 public class CustomException_02 { public static void main(String[] args) { try { customException() formatThrowable() } catch (CustomException e1) { // 捕获CustomException异常 System.out.println("Exception: "
javaerrortwo
- java自定义异常实例(二)。 public class CustomException_02 { public static void main(String[] args) { try { customException() formatThrowable() } catch (CustomException e1) { // 捕获CustomException异常 System.out.println("Exception: "
Noname
- 简单服务器代码public static void main(String[] args) throws IOException { ServerSocket ss=new ServerSocket(10009) Socket s=ss.accept() InputStream in=s.getInputStream() byte[] buf=new byte[1024] int len=in.read(buf) System.out.p
java-plist-shsh
- j2SE,J2ME,J2EE,Android,java范围技术交流,iso shsh文件备份和直接通过浏览器下载iphone游戏和或者软件包 ios在解锁或者备份shsh文件时,从手机里获取的plist文件是打不开的,我们可以通过java转成xml或者可以打的plist。shsh文件备份, import java.io.* import com.dd.plist.PropertyListParser public class P
Property-Management-System
- 使用JAVA编译的物业管理系统,部分代码: package com.wy.util import java.util.* public class nowdate { public static int getSystime() { Calendar tt = Calendar.getInstance() //获取Calendar对象 Date time = tt.getTime() //获取日期 int year = time.getYe
RemoteSubActivityScreen
- Class under test void BackingStoreException(String) for Andriod.
array
- 1. 使用下面的方法头编写方法,消除数组中重复出现的值。输入10个整数,显示去除重复数后的结果。(设计性实验) public static void int[] removeDuplicate(int[] number)-1 Use the following method header preparation methods, eliminating repeated array values. Enter 10 integers, show the results after
TEST1
- 阅读下面的程序,在main()方法里添加语句完成如下功能: ①创建一个MyValue类的对象myValue. ②为myValue对象中的value域赋值10. ③使用getVaule()方法获得myValue对象中的数据并将它打印在屏幕上. class MyValue { private int value public void setValue(int x) { Value = x } public int getValue( ){
1
- 运行下列程序,分析super关键字的使用,以及父类与子类之间的隐藏和重写关系 class superClass{ int x superClass( ){ x = 3 System.out.println("in superClass : x = "+x) } void doSomething( ){ System.out.println("in superClass.doSomething( )") } class
Mypicture
- 定义4个类,MyShape、MyLine、MyRectangle和MyOval,其中MyShape是其他三个类的父类。MyShape为抽象类,包括图形位置的四个坐标;一个无参的构造方法,将所有的坐标设置为0;一个带参的构造函数,将所有的坐标设置为相应值;每个坐标的设置和读取方法;abstract void draw(Graphics g)方法。MyLine类负责画直线,实现父类的draw方法;MyRectangle负责画矩形,实现父类的draw方法;MyOval负责画椭圆,实现父类的draw方法
Classes-(I)---CPP-Documentation_files
- In order to avoid that, a class can include a special function called constructor, which is automatically called whenever a new object of this class is created. This constructor function must have the same name as the class, and cannot have any retur
OldURLTest
- Override protected void tear Down Source Code for Andriod.
RoutingWeb
- 对于非MVC架构的ASP.NET站点实现路由,Global.cs添加:public static void RegisterRoutes(RouteCollection routes) { routes.MapPageRoute("ProductsRoute", "Products/list-{lbid}", "~/Products/ProList.aspx") routes.MapPageRoute("ProductsDetail", "Products/show-{id}