2013年11月24日

将博客搬至CSDN

摘要: 终于找了一个比较适合自己的博客,bye博客园。 阅读全文

posted @ 2013-11-24 21:13 nigel_jw 阅读(144) 评论(0) 推荐(0) 编辑

2013年11月8日

ERROR:通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。错误:“Connection refused: connect。请验证连接属性,并检查 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接,还要确保防火墙没有阻止到此端口的 TCP

摘要: 本文转载于:file:///C:/Users/Administrator/Desktop/[%E8%BD%AC%E8%BD%BD]%E9%80%9A%E8%BF%87%E7%AB%AF%E5%8F%A3%201433%20%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%B8%BB%E6%9C%BA%20localhost%20%E7%9A%84%20TCP%20IP%20%E8%BF%9E%E6%8E%A5%E5%A4%B1%E8%B4%A5%E3%80%82%E9%94%99%E8%AF%AF%20%E2%80%9CConnection%20refused%20%20conne 阅读全文

posted @ 2013-11-08 18:25 nigel_jw 阅读(3432) 评论(0) 推荐(0) 编辑

JAVA:对数据库的一系列操作代码

摘要: 插入数据import java.sql.*;/** * @version 2012-02-22 * @author */public class InsertDemo { public static void main(String[] args) throws SQLException { Connection conn = null; Statement stmt = null; String JDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver";//SQL鏁版嵁搴撳紩鎿� ... 阅读全文

posted @ 2013-11-08 18:20 nigel_jw 阅读(231) 评论(0) 推荐(1) 编辑

JAVA与 SQL server2008进行连接

摘要: import java.sql.*;public class Test { public static void main(String [] args) throws SQLException { String driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver"; String url="jdbc:sqlserver://localhost:1433;databaseName=test"; String userName="sa"; //"MVF7JLVWLQ 阅读全文

posted @ 2013-11-08 18:15 nigel_jw 阅读(963) 评论(0) 推荐(0) 编辑

怎么样将数据库的表在Java中界面中显示出来

摘要: 原文地址:http://wenku.baidu.com/link?url=39cZltge1d1HbmnF0wCO9a1M7Z4rl5urIECtGmy5D6t058KN98k10cw1bHHp6emKOel3ngghR2MBzmVee5AchUoTfyYgNGIoAPRPlYLPrwCimport javax.swing.*;import javax.swing.table.JTableHeader;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.sql.*;public c 阅读全文

posted @ 2013-11-08 18:13 nigel_jw 阅读(5162) 评论(0) 推荐(1) 编辑

2013年5月30日

UVa 11078 - Open Credit System(开放式学分制)

摘要: Open Credit System Input:Standard InputOutput:Standard OutputIn an open credit system, the students can choose any course they like, but there is a problem. Some of the students are more senior than other students. The professor of such a course has found quite a number of such students who came fro 阅读全文

posted @ 2013-05-30 20:45 nigel_jw 阅读(287) 评论(0) 推荐(0) 编辑

2013年5月29日

UVa 11520 - Fill the Square (填充正方形)

摘要: Fill the Square Input:Standard InputOutput:Standard OutputIn this problem, you have to draw a square using uppercase English Alphabets.To be more precise, you will be given a square grid with some empty blocks and others already filled for you with some letters to make your task easier. You have to 阅读全文

posted @ 2013-05-29 20:52 nigel_jw 阅读(299) 评论(0) 推荐(0) 编辑

UVa 11462 - Age Sort (桶排序)

摘要: Age SortInput:Standard InputOutput:Standard OutputYou are given the ages (in years) of all people of a country with at least 1 year of age. You know that no individual in that country lives for 100 or more years. Now, you are given a very simple task of sorting all the ages in ascending order.InputT 阅读全文

posted @ 2013-05-29 11:50 nigel_jw 阅读(252) 评论(0) 推荐(0) 编辑

2013年5月28日

UVa 11210 - Chinese Mahjong(中国麻将)

摘要: Chinese MahjongMahjong () is a game of Chinese origin usually played by four persons with tiles resembling dominoes and bearing various designs, which are drawn and discarded until one player wins with a hand of four combinations of three tiles each and a pair of matching tiles.A set of Mahjong tile 阅读全文

posted @ 2013-05-28 12:49 nigel_jw 阅读(384) 评论(0) 推荐(0) 编辑

2013年5月27日

UVa 11384 - Help is needed for Dexter (正整数序列)

摘要: Help is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy to win at least not for Dee Dee. But Dexter does not have time to spend on this silly task, so he wants your help.Ther 阅读全文

posted @ 2013-05-27 21:53 nigel_jw 阅读(163) 评论(0) 推荐(0) 编辑

导航