This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kaishengit.dao.core; | |
import java.io.Serializable; | |
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
import java.util.List; | |
import java.util.Map; | |
import org.hibernate.Criteria; | |
import org.hibernate.Query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jdbc.librarysystem.util; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jdbc.librarysystem.entity; | |
public class Admin { | |
private int id; | |
private String username; | |
private String password; | |
public int getId() { | |
return id; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | |
<title>EveryDay You Need</title> | |
</head> | |
<body background="html/img/white.png"> | |
<table cellspacing="10" style="height: 100px;text-align: center;" > | |
<tbody> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.java13; | |
//创建一个Date类 | |
public class Date { | |
private String year; | |
private String month;//Date所包含的属性 | |
private String day; | |
public String getYear() { | |
return year; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mobile; | |
public class Mobile { | |
private String[] names = new String[10];//定义数组,开辟内存空间 | |
private String[] nums = new String[10];//定义数组,开辟内存空间 | |
java.util.Scanner input = new java.util.Scanner(System.in); | |
//开始方法 | |
public void star(){ | |
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Login { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
int errorNum = 0;//赋初始变量 | |
String lastname = "";//赋初始变量 | |
while (true){ | |
System.out.println("请输入用户名:"); | |
String name = input.next(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Total { | |
public static void main (String[] args) { | |
int i = 0; | |
int total = 0; | |
while (i <= 100) { | |
int num = i%2;//数字i对2进行取余 | |
i++;//对数字i进行自加 | |
if (num != 0) {//判断余数是否为0 | |
total += i;//当余数不为0的时候,说明i是偶数,加到和值total上 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PaiXu { | |
public static void main (String[] args) { | |
java.util.Scanner input = new java.util.Scanner(System.in); | |
int [] nums = new int [5]; //定义数组,开辟空间 | |
/*int [] nums; | |
nums = new int [5]; //另外的一种定义数组的方法 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DaoXu { | |
public static void main (String[] args){ | |
java.util.Scanner input = new java.util.Scanner(System.in); | |
System.out.println("请输入数字:"); | |
int num = input.nextInt(); | |
System.out.println("输出数字为:"); | |
while (num != 0) { | |
int i = num % 10; //数字num对10进行取余 |
NewerOlder