`
文章列表

cookies

英文直接翻译过来的意思呢就是小甜品 Cookie英文意指饼干,不过在电脑术语中它可不像饼干那么简单。简单的说,Cookie就是服务器暂存放在你计算机上的一笔资料,好让服务器用来辨认你的计算机。当你在浏览网站的时候,Web服 ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>A Sample FORM using POST</TITLE> </HEAD> <BODY BGCOLOR="#FDF5E6"> <H1 ALIGN="CENTER">A Sample FORM using POST</H1> <F ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>A Sample FORM using POST</TITLE> </HEAD> <BODY BGCOLOR="#FDF5E6"> <H1 ALIGN="CENTER">A Sample FORM using POST</H1> <F ...
package com.bjsxt; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class TestInitServlet extends Htt ...
1.HelloServlet package com.bjsxt; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class HelloServ ...
引用   1.编写POM     <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">   <modelVersion>4.0.0</modelVers ...

maven的安装

引用   1.在Windows上安装Maven   检查JDK安装    上述命令首先检查环境变量JAVA_HOME是否指向了正确的JDK目录,接着尝试运行java命令。    如果Windows无法执行java命令,或者无法找到JAVA_HOME环境变量,就需要检查java是否安装了,或者环境变量是否设置正确。 如果你运行命令和上图一样那就可以了.   2.下载Maven   请访问Maven的下载页面: http://maven.apache.org/download.html 需要下载apache-maven-3.0-bin.zip   3.本地安装   将安装文件解压到指定的目录中 ...

TankWar1.9

    博客分类:
  • java
package com.diaodiao; import java.awt.Color; import java.awt.Frame; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.util.ArrayList; impo ...

TankWar1.7

    博客分类:
  • java
package com.diaodiao; import java.awt.Color; import java.awt.Frame; import java.awt.Graphics; import java.awt.Image; import java.awt.Insets; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.Wind ...
import java.awt.* ; import javax.swing.* ; import java.awt.event.*; import java.util.EventListener; public class HsTank2 extends JFrame { HsTank2(String title) { this.setTitle(title) ; this.setSize(608 , 630) ; this.setLocation(300 , 100) ; this.setBackground(Color.WHITE) ; My ...

ThreadLocal

    博客分类:
  • java
package com.diaodiao; public class SequenceNumber { private static ThreadLocal seqNum = new ThreadLocal(){ public Integer initialValue(){ return 0; } }; public int getNextNum(){ seqNum.set((Integer)seqNum.get()+1); return (I ...

TankWar1.4

    博客分类:
  • java
package com.diaodiao; import java.awt.Color; import java.awt.Frame; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.util.List; public ...

TankWar0.7

    博客分类:
  • java
package com.diaodiao; import java.awt.Frame; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class TankClient extends ...
package com.diaodiao; import java.awt.Frame; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class TankClient extends Frame { int x = 50; int y = 50; Image offScreenImage = null; @Overrid ...
package test.sync; public class TT implements Runnable { int b = 100; public synchronized void m1() { b = 1000; try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("b = " + b); } public synchronized void m2() { b ...
Global site tag (gtag.js) - Google Analytics