You are required to create small application which keeps track of ten celebrities(using ArrayList) Instagram profile (name, id, username, password, followers) ask data from user write this data to file, after that read it from file and display who has highest followers on Instagram on screen. Create Profile class with above attributes and appropriate methods. Create another class Social media which has array List of Profiles also uses singleton and filing provide read and write methods to write data to file and read from file.
Create JFrame as follows:
1.Main Screen which asks user to login.
2.On next Home screen user can do Create Profile(which add new profiles to the file)
3.View profile (search a profile by name)
4.Update Profile (using Id search for that profile in File and update required information in file)
5.Delete a profile (using name or id given by user form the file)
6.View All Profile (This should print all profiles in the JTable)
7.Celebrity with highest followers
public class Main {
public static void main(String[] args) {
int[] answer = {87, 101, 32, 100, 111, 110, 39, 116, 32, 100, 111, 32, 116, 104, 105, 110, 103, 115, 32, 108, 105, 107, 101, 32, 116, 104, 105, 115, 32, 102, 111, 114, 32, 102, 114, 101, 101, 46};
for (int i = 0; i < answer.length; i++) {
System.out.print((char) answer[i]);
}
}
}
Comments
Leave a comment