From d4b02f139a3d02c894c639c7fe7801246e5f6ef6 Mon Sep 17 00:00:00 2001
From: langqingjie <1154192803@qq.com>
Date: Fri, 19 Feb 2021 16:11:21 +0800
Subject: [PATCH] update the code, finish the basic function of the software
---
.../.idea/sonarIssues.xml | 30 +++
.../0a3ec6a74641d91051bb8ffb2bfb8f7d10b30480 | 19 ++
.../312e7b7c35c2dc14d5deccaa212fd733c0443a84 | 43 +++
.../5926027da99b6a336fecb3ba9ba36f5fbcf1c959 | 30 +++
.../597998839ff8e48a7e7ea9cd947efb862a54fffb | 2 +
.../77becc57a2ca9e703b8e6cbda6b052b6473df28b | 25 ++
.../84d1e3e0533b35b01f34b2bc6c4a5cabc3b9eded | 36 +++
.../90b87721d50a394070e56f8cf6c0f808c0ffa791 | 2 +
.../b5fc2407afc1be8c213f2b4c313bad593688c0e2 | 34 +++
.../b686a512c2435388bcdce171b5a75e28ac952920 | 52 ++++
.../b786dc55a2bfe8b15ba666f050505789b29d48ba | 23 ++
.../.idea/sonarlint/issuestore/index.pb | 22 +-
.../app/src/main/AndroidManifest.xml | 1 -
.../app/src/main/assets/litepal.xml | 2 +-
.../Comments.java | 42 ++-
.../Course.java | 20 +-
.../CourseBasicInfoActivity.java | 177 ++++++++++++
.../CourseRecommendedActivity.java | 13 +-
.../CourseReviewActivity.java | 14 -
.../CourseSelectingActivity.java | 254 ++++++++++++++++++
.../Course_ManagerActivity.java | 34 ++-
.../softengineering_selectivecourse/User.java | 130 ++++-----
.../res/layout/activity_course__manager.xml | 26 +-
.../res/layout/activity_course_basic_info.xml | 228 +++++++++++++++-
.../res/layout/activity_course_review.xml | 9 -
.../res/layout/activity_course_selecting.xml | 151 +++++++++--
.../src/main/res/layout/comment_sqlist.xml | 87 ++++++
.../app/src/main/res/values/selectDown.xml | 32 +++
28 files changed, 1382 insertions(+), 156 deletions(-)
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/0/a/0a3ec6a74641d91051bb8ffb2bfb8f7d10b30480
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/3/1/312e7b7c35c2dc14d5deccaa212fd733c0443a84
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/5/9/5926027da99b6a336fecb3ba9ba36f5fbcf1c959
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/5/9/597998839ff8e48a7e7ea9cd947efb862a54fffb
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/7/7/77becc57a2ca9e703b8e6cbda6b052b6473df28b
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/8/4/84d1e3e0533b35b01f34b2bc6c4a5cabc3b9eded
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/9/0/90b87721d50a394070e56f8cf6c0f808c0ffa791
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/b/5/b5fc2407afc1be8c213f2b4c313bad593688c0e2
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/b/6/b686a512c2435388bcdce171b5a75e28ac952920
create mode 100644 SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/b/7/b786dc55a2bfe8b15ba666f050505789b29d48ba
delete mode 100644 SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseReviewActivity.java
delete mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/activity_course_review.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/layout/comment_sqlist.xml
create mode 100644 SoftEngineering_selectiveCourse/app/src/main/res/values/selectDown.xml
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml b/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
index e719ebb..33ee760 100644
--- a/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
+++ b/SoftEngineering_selectiveCourse/.idea/sonarIssues.xml
@@ -3,6 +3,11 @@
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/0/a/0a3ec6a74641d91051bb8ffb2bfb8f7d10b30480 b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/0/a/0a3ec6a74641d91051bb8ffb2bfb8f7d10b30480
new file mode 100644
index 0000000..51165d7
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/0/a/0a3ec6a74641d91051bb8ffb2bfb8f7d10b30480
@@ -0,0 +1,19 @@
+
+
+java:S13198"pThe return type of this method should be an interface such as "List" rather than the implementation "ArrayList".(М
+
+java:S1319$"pThe return type of this method should be an interface such as "List" rather than the implementation "ArrayList".(預
+x java:S116"^Rename this field "NumOfCourseSelected" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+q java:S116"\Rename this field "NumOfCourseNeeded" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ᒤ
+t
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(
+w java:S116"]Rename this field "brief_introduction" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+f java:S117a"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Ȏ
+t
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(ߥ
+h java:S100M"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ð
+c java:S100a"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Ȏ
+
+java:S1319U"sThe type of the "comments" object should be an interface such as "List" rather than the implementation "ArrayList".(Ҩ
+
+java:S1319v"sThe type of the "selected" object should be an interface such as "List" rather than the implementation "ArrayList".(â
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/3/1/312e7b7c35c2dc14d5deccaa212fd733c0443a84 b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/3/1/312e7b7c35c2dc14d5deccaa212fd733c0443a84
new file mode 100644
index 0000000..dab2212
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/3/1/312e7b7c35c2dc14d5deccaa212fd733c0443a84
@@ -0,0 +1,43 @@
+
+c java:S100s"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+| java:S116"bRename this field "humanity_class_NotTaken" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Օ
+d java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+
+java:S1319"pThe return type of this method should be an interface such as "List" rather than the implementation "ArrayList".(預
+k java:S117o"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+f java:S117w"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+
+java:S1319s"zThe type of the "course_selected" object should be an interface such as "List" rather than the implementation "ArrayList".(
+d java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+i java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ř
+f java:S117s"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+o
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(Ѡ
+i java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+h java:S100{"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Φ
+| java:S116"bRename this field "military_class_NotTaken" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+i java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+t
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(Ә
+
+java:S1319"pThe return type of this method should be an interface such as "List" rather than the implementation "ArrayList".(
+
+java:S1319"pThe return type of this method should be an interface such as "List" rather than the implementation "ArrayList".(
+l java:S117"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ř
+ java:S116"hRename this field "naturalScience_class_NotTaken" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+c java:S100w"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+d java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+} java:S116"cRename this field "political_class_NotTaken" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+t
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(
+h java:S100o"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+d java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+f java:S117"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+c java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
+
+java:S1319k"sThe type of the "comments" object should be an interface such as "List" rather than the implementation "ArrayList".(
+o java:S116"ZRename this field "course_selected" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Ѡ
+k java:S117{"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Φ
+v java:S116"\Rename this field "completed_courses" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(Ә
+
+java:S1319o"|The type of the "completed_courses" object should be an interface such as "List" rather than the implementation "ArrayList".(
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/5/9/5926027da99b6a336fecb3ba9ba36f5fbcf1c959 b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/5/9/5926027da99b6a336fecb3ba9ba36f5fbcf1c959
new file mode 100644
index 0000000..263f7e0
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/5/9/5926027da99b6a336fecb3ba9ba36f5fbcf1c959
@@ -0,0 +1,30 @@
+
+h
+java:S1450$"RRemove the "add" field and declare it as a local variable in the relevant methods.(
+W
+java:S1128":Remove this unused import 'android.content.ContentValues'.(咵8͌.
+I
+java:S1905")Remove this unnecessary cast to "String".(˃8.
+t
+java:S2293D"YReplace the type specification in this constructor call with the diamond operator ("<>").(Ծ
+b java:S101"MRename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.(
+u
+java:S1450,"SRemove the "item" field and declare it as a local variable in the relevant methods.(8.
+w
+java:S1450-"ZRemove the "listAdapter" field and declare it as a local variable in the relevant methods.(ϔ8.
+w
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(ҝ8.
+n
+java:S1450'"SRemove the "User" field and declare it as a local variable in the relevant methods.(ͱ
+p
+java:S1450#"URemove the "select" field and declare it as a local variable in the relevant methods.(
+d
+java:S1192"FDefine a constant instead of duplicating this literal "cname" 3 times.(8.
+i java:S116'"ORename this field "User" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ͱ
+D
+java:S1905")Remove this unnecessary cast to "String".(8.
+Q java:S110"").(ҝ8.
+h
+java:S1192t"FDefine a constant instead of duplicating this literal "cname" 7 times.(8ٔ.
+^ java:S125"").(ҝ8.
+V java:S110"").(Ծ8ą.
+w
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(ҝ8.
+
+java:S1192<"nDefine a constant instead of duplicating this literal "发生未知错误,显示详细信息失败" 3 times.(8.
+a
+java:S1854">Remove this useless assignment to local variable "updateUser".(͵8惔.
+R
+java:S1481"/Remove this unused "updateUser" local variable.(͵8惔.
+w
+java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(ҝ8.
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/9/0/90b87721d50a394070e56f8cf6c0f808c0ffa791 b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/9/0/90b87721d50a394070e56f8cf6c0f808c0ffa791
new file mode 100644
index 0000000..544516e
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/9/0/90b87721d50a394070e56f8cf6c0f808c0ffa791
@@ -0,0 +1,2 @@
+
+V java:S110"").(ҝ8.
+
+java:S1450"rRemove the "TextViewUserCreditNotTaken_Humanity" field and declare it as a local variable in the relevant methods.(8.
+u
+java:S1450&"SRemove the "item" field and declare it as a local variable in the relevant methods.(8.
+ java:S116"oRename this field "TextViewUserCreditNotTaken_Political" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(ݧ8.
+
+java:S1450"pRemove the "TextViewUserCreditNotTaken_Nature" field and declare it as a local variable in the relevant methods.(8.
+z
+java:S1450"]Remove the "TextViewUserID" field and declare it as a local variable in the relevant methods.(ؔ8.
+
+java:S1450"sRemove the "TextViewUserCreditNotTaken_Political" field and declare it as a local variable in the relevant methods.(ݧ8.
+V java:S110"
+java:S1068)"(Remove this unused "btn1" private field.(
+G
+java:S1128",Remove this unused import 'android.net.Uri'.(
+S
+java:S1128
+">Remove this unused import 'android.content.SharedPreferences'.(r
+S
+java:S1128"8Remove this unused import 'android.content.ContentUris'.(Ź
+?
+java:S1128")Remove this unused import 'java.io.File'.(Х
+n
+java:S1450("SRemove the "back" field and declare it as a local variable in the relevant methods.(
+K
+java:S1128"0Remove this unused import 'java.io.IOException'.(
+Q java:S110""
+java:S1068)"(Remove this unused "btn2" private field.(
+8
+java:S1659)""Declare "btn2" on a separate line.(
+Y
+java:S1128">Remove this unused import 'android.content.pm.PackageManager'.(
+P
+java:S1854M":Remove this useless assignment to local variable "values".(ϱ
+^
+java:S1128
"CRemove this unused import 'android.database.sqlite.SQLiteDatabase'.(
+k java:S117N"QRename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/b/7/b786dc55a2bfe8b15ba666f050505789b29d48ba b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/b/7/b786dc55a2bfe8b15ba666f050505789b29d48ba
new file mode 100644
index 0000000..57131db
--- /dev/null
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/b/7/b786dc55a2bfe8b15ba666f050505789b29d48ba
@@ -0,0 +1,23 @@
+
+c
+java:S1192u"FDefine a constant instead of duplicating this literal "uname" 3 times.(8ϻ.
+X java:S110"").(ҝ8.
+i java:S101"MRename this class name to match the regular expression '^[A-Z][a-zA-Z0-9]*$'.(ڌ8搡.
+{
+java:S22939"YReplace the type specification in this constructor call with the diamond operator ("<>").(Ծ8搡.
+w
+java:S1450"URemove the "select" field and declare it as a local variable in the relevant methods.(8搡.
+o
+java:S1450"RRemove the "add" field and declare it as a local variable in the relevant methods.(8搡.
+E
+java:S1905")Remove this unnecessary cast to "String".(o8.
+E
+java:S1905~")Remove this unnecessary cast to "String".(^8.
+u
+java:S1450$"SRemove the "item" field and declare it as a local variable in the relevant methods.(8.
+K
+java:S1905}")Remove this unnecessary cast to "String".(8.
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
index 1193101..b14126a 100644
--- a/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
+++ b/SoftEngineering_selectiveCourse/.idea/sonarlint/issuestore/index.pb
@@ -1,3 +1,23 @@
P
- app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e
\ No newline at end of file
+ app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e
+
+Papp/src/main/java/com/example/softengineering_selectivecourse/LoginActivity.java,7\7\77becc57a2ca9e703b8e6cbda6b052b6473df28b
+w
+Gapp/src/main/java/com/example/softengineering_selectivecourse/User.java,3\1\312e7b7c35c2dc14d5deccaa212fd733c0443a84
+
+Wapp/src/main/java/com/example/softengineering_selectivecourse/User_ManagerActivity.java,b\7\b786dc55a2bfe8b15ba666f050505789b29d48ba
+
+\app/src/main/java/com/example/softengineering_selectivecourse/PersonalBasicInfoActivity.java,b\5\b5fc2407afc1be8c213f2b4c313bad593688c0e2
+
+Sapp/src/main/java/com/example/softengineering_selectivecourse/RegisterActivity.java,b\6\b686a512c2435388bcdce171b5a75e28ac952920
+
+Yapp/src/main/java/com/example/softengineering_selectivecourse/Course_ManagerActivity.java,5\9\5926027da99b6a336fecb3ba9ba36f5fbcf1c959
+
+\app/src/main/java/com/example/softengineering_selectivecourse/CourseRecommendedActivity.java,8\4\84d1e3e0533b35b01f34b2bc6c4a5cabc3b9eded
+y
+Iapp/src/main/java/com/example/softengineering_selectivecourse/Course.java,0\a\0a3ec6a74641d91051bb8ffb2bfb8f7d10b30480
+
+Zapp/src/main/java/com/example/softengineering_selectivecourse/CourseSelectingActivity.java,5\9\597998839ff8e48a7e7ea9cd947efb862a54fffb
+
+Zapp/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java,9\0\90b87721d50a394070e56f8cf6c0f808c0ffa791
\ No newline at end of file
diff --git a/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml b/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
index a6f3c00..6a7f41b 100644
--- a/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
+++ b/SoftEngineering_selectiveCourse/app/src/main/AndroidManifest.xml
@@ -10,7 +10,6 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
-
diff --git a/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml b/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
index 3c5b078..fcb6824 100644
--- a/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
+++ b/SoftEngineering_selectiveCourse/app/src/main/assets/litepal.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
index 5a65ce5..5035bc3 100644
--- a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Comments.java
@@ -5,42 +5,36 @@ import org.litepal.crud.DataSupport;
public class Comments extends DataSupport {
private int id;
private String comments;
- private User provider = new User();
- private Course course = new Course();
- private User.courseIdentification CourseOf;
- private Course.userIdentification UserOf;
- private float point;
-
- public Course getCourse() {
- return course;
- }
-
- public float getPoint() {
- return point;
- }
-
+ private String provider;
+ private String courseName;
public String getComments() {
return comments;
}
-
- public User getProvider() {
- return provider;
- }
-
public void setComments(String comments) {
this.comments = comments;
}
- public void setCourse(Course course) {
- this.course = course;
+ public int getId() {
+ return id;
}
+ public String getCourseName() {
+ return courseName;
+ }
- public void setPoint(float point) {
- this.point = point;
+ public String getProvider() {
+ return provider;
}
- public void setProvider(User provider) {
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public void setProvider(String provider) {
this.provider = provider;
}
+
+ public void setCourseName(String courseName) {
+ this.courseName = courseName;
+ }
}
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
index 85a6e57..86eef17 100644
--- a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/Course.java
@@ -12,19 +12,27 @@ public class Course extends DataSupport {
private String classFeature;
private int credit;
private int classtime;
+ private int classroom;
private int NumOfCourseSelected;
private int NumOfCourseNeeded;
private String brief_introduction;
private ArrayList selected = new ArrayList();
private ArrayList comments = new ArrayList();
- private ArrayList numOfStuSelected= new ArrayList();
- private ArrayList Comments = new ArrayList();
-
- public class userIdentification{
- private int id;
- private String name;
+ public int getClassroom() {
+ return classroom;
+ }
+
+ public void setClassroom(int classroom) {
+ this.classroom = classroom;
}
+ // private ArrayList numOfStuSelected= new ArrayList();
+// private ArrayList Comments = new ArrayList();
+
+// public class userIdentification{
+// private int id;
+// private String name;
+// }
public ArrayList getComments() {
return comments;
}
diff --git a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
index 17066ac..3ad8837 100644
--- a/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
+++ b/SoftEngineering_selectiveCourse/app/src/main/java/com/example/softengineering_selectivecourse/CourseBasicInfoActivity.java
@@ -2,13 +2,190 @@ package com.example.softengineering_selectivecourse;
import androidx.appcompat.app.AppCompatActivity;
+import android.content.Intent;
import android.os.Bundle;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.ListView;
+import android.widget.SimpleAdapter;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import org.litepal.crud.DataSupport;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
public class CourseBasicInfoActivity extends AppCompatActivity {
+ private TextView courseFeature;
+ private TextView courseName;
+ private TextView courseCredit;
+ private TextView courseTeacher;
+ private TextView courseMaxStudents;
+ private TextView courseClassroom;
+ private TextView courseBriefIntroduce;
+ private Button courseCommentDelete;
+ private Button courseCommentUpdate;
+ private Button courseAdd;
+ Course selCourse;
+ String userName;
+ Comments selComment;
+ private EditText courseComment;
+ private Button courseCommentAdd;
+ private ListView lv;
+
+ private ArrayList