F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_2227338_15223\Main.java:2: 需要为 class、interface 或 enum
	public List<News> findNewsPage(int page) throws SQLException
	       ^
0_0_2227338_15223\Main.java:5: 需要为 class、interface 或 enum
		ResultSet rs=DBhelper.executeQuery(sql);
		^
0_0_2227338_15223\Main.java:6: 需要为 class、interface 或 enum
		List<News> list =new ArrayList<News>();
		^
0_0_2227338_15223\Main.java:7: 需要为 class、interface 或 enum
		News n=null;
		^
0_0_2227338_15223\Main.java:8: 需要为 class、interface 或 enum
		while(rs.next())
		^
0_0_2227338_15223\Main.java:11: 需要为 class、interface 或 enum
			n.setNewsID( rs.getInt("NewsID"));
			^
0_0_2227338_15223\Main.java:12: 需要为 class、interface 或 enum
			n.setSmallType( (smallTypeMap.get(rs.getString("SmallTypeID"))) );
			^
0_0_2227338_15223\Main.java:14: 需要为 class、interface 或 enum
			n.setBigType( (String)bigTypeMap.get(rs.getString("BigTypeID")) );
			^
0_0_2227338_15223\Main.java:15: 需要为 class、interface 或 enum
			n.setTitle( rs.getString("News_Title") );
			^
0_0_2227338_15223\Main.java:16: 需要为 class、interface 或 enum
			n.setTime(rs.getDate("News_AddTime"));
			^
0_0_2227338_15223\Main.java:17: 需要为 class、interface 或 enum
			list.add(n);
			^
0_0_2227338_15223\Main.java:18: 需要为 class、interface 或 enum
		}
		^
0_0_2227338_15223\Main.java:20: 需要为 class、interface 或 enum
	}
	^
0_0_2227338_15223\Main.java:21: 需要为 class、interface 或 enum
	public String makePageSql(int pagenum, int pagesize)
	       ^
0_0_2227338_15223\Main.java:24: 需要为 class、interface 或 enum
		int end=pagenum*pagesize;
		^
0_0_2227338_15223\Main.java:25: 需要为 class、interface 或 enum
		StringBuffer sql=new StringBuffer("SELECT *   FROM (SELECT ROW_NUMBER() OVER(ORDER BY newsid DESC) ");
		^
0_0_2227338_15223\Main.java:26: 需要为 class、interface 或 enum
		sql=sql.append("AS rownum,  News_Title ,NewsID,News_AddTime,BigTypeID,SmallTypeID FROM web_news_info) AS D ");
		^
0_0_2227338_15223\Main.java:27: 需要为 class、interface 或 enum
		sql=sql.append("WHERE rownum BETWEEN "+start+" AND "+end);
		^
0_0_2227338_15223\Main.java:28: 需要为 class、interface 或 enum
		sql=sql.append(" ORDER BY NewsID DESC");
		^
0_0_2227338_15223\Main.java:30: 需要为 class、interface 或 enum
		return sql.toString();
		^
0_0_2227338_15223\Main.java:31: 需要为 class、interface 或 enum
	}


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 08:05:08, Gzip enabled