-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFeature.java
More file actions
39 lines (32 loc) · 844 Bytes
/
Feature.java
File metadata and controls
39 lines (32 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import java.sql.SQLException;
import java.util.Scanner;
public class Feature {
Account a;
Feature(){
//
}
Feature(Account a){
this.a = a;
}
public void Post() throws SQLException {
System.out.println("enter post");
Scanner sc = new Scanner(System.in);
String Text = sc.nextLine();
Scanner scbool = new Scanner(System.in);
System.out.println("enter true if you found sth or false if you search for sth");
boolean foundsth = scbool.nextBoolean();
Post p = new Post(Text,a,foundsth);
System.out.println("Posted");
}
public void comment(String Text) {
}
public void search(String text) {
}
public void viewhp() throws SQLException{
HomePage hp = new HomePage();
}
public void modifycomment() {
}
public void modifypost() {
}
}