`
fatedgar
  • 浏览: 131844 次
  • 性别: Icon_minigender_1
  • 来自: 安徽
社区版块
存档分类
最新评论
文章列表
Java编程之四大名著 看过了中国古代四大名著,对中国文化也就了解的八九不离十了。 Java作为主流编程语言,相关书籍也是蔚为大观。如何筛选一本好书成了一个莫大难题。 此java编程之四大名著,筛选力求客观,希望能够为有 ...
用java编写的计算器 import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public class Calculator extends JFrame{ private float op1,op2;//定义两个变量存放需要运算的值 private String str="";//定义str去和text进行交叉赋值 private String opr,co;//opr存放符合,co用来存放复制的内容 private ...
1.出现: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) at javax.naming.Initial ...
java 的垃圾回收机制: 1.垃圾回收是由虚拟机自动执行,不能人为地干预。 2.系统比较空闲(垃圾回收线程) 3.对象不在被引用.对象处于引用的隔离岛状态(隔离引用),对象具备了回收的条件 4.gc()方法,可以建议虚拟机执行垃圾回收,但是不能确定是否会执行回收
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace form1 { public partial class Form1 : Form { public Form1() ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace计算器 { public partial class Form1 : Form { public Form1() { InitializeCom ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace xiezhiban { public partial class Form1 : Form { string s; public Form1() { ...
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Windows; using System.Windows.Forms; namespace winmine { public class Map { public static int Time = 0; public static bool GameOver = fal ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace trytry { public partial class Form1 : Form { public Form1() ...
格式: create trigger tri_name on table_name [for (insert/update/delete)] /[instead of (insert/update/delete)] as     statement create trigger 名称 on 表名for (insert update delete 其中之一) as    语句 一 alter trigger tri_insert on course for insert as declare @name nchar(5) select @name=coursename fr ...
格式: 存储过程: create proc 过程名 as 语句 运用: exec过程名 一: create proc selectproduct @price money as select productname,unitprice from Products where unitprice>@price exec selectproduct 10 二: create procedure selectproduct as select productname,unitprice from products where unitprice>5 ...
   在Struts中,擔任 MVC / Model 2 中Controller角色的是ActionServlet,所有的請求都必須先通過它,然而在Struts 1.1後,有關於請求的處理大部份已交由RequestProcessor,當ActionServlet收到GET或POST的請求,其doGet() 或doPost()會呼叫process()方法來處理請求: protected void process(HttpServletRequest request, HttpServletResponse response) ...
从大多数数据库应用系统的实例来看,查询*作在各种数据库*作中所占据的比重最大,而查询*作所基于的SELECT语句在SQL语句中又是代价最大的语句。 查询语句(SELECT)的优化建议   (1)、合理使用索引:where子句中变量顺序应与索引字键顺序相同。   如:create index test_idx on test(hm, rq, xx)       索引字键顺序:首先是号码hm,其次是日期rq,最后是标志xx,所以where子句变量顺序应是where hm<=“P1234”and rq=“06/06/1999”and xx=“DDD”,不应是where xx=“DDD” and ...
例如Test类。他在包:com.niit.action下 1、Test t1=new Test(); 2、Class c=Class.forName("com.niit.action.Test");    Test t2=(Test)c.new Instance(); 3、Test t3=(Test)t1.clone();
在谷歌中: 1、只要在谷歌中搜“let it snow”你的屏幕就会下雪,下多了出霜还可以用鼠标画着玩,你的屏幕会被“霜冻”,点击屏幕上“除霜”按钮可以完成除霜。(少数浏览器不支持); 2、在试试这个:do a barrel roll; 3、在试试这个:tilt baidu的知道里面搜索“变形金刚”,看看什么是变形金刚
Global site tag (gtag.js) - Google Analytics