Question
JAVA PROGRAMMING Hello, I hope you are doing well... I needed help with a lab where I'm trying to completely rewrite Twitter's backend software in
JAVA PROGRAMMING
Hello, I hope you are doing well...
I needed help with a lab where I'm trying to completely rewrite Twitter's backend software in Java!
1. Once you create a project in IntelliJ or whatever you are using then kindly develop a "value class" for a tweet. Call it Tweet. Consider what kind of properties this class should have, and develop an appropriate constructor, getters, and setters. Use appropriate access modifiers and use constants where appropriate.
2. Now modify the Tweet class to add three methods:
- A like method. This method should have no parameters and no return value but should increase the likes for the tweet by one.
- A getLikes method. This method should have no parameters and return an integer (the number of likes this tweet has received)
- A getAllHashTags method that has no parameters and returns an array list of all the hash tags in the tweet.
Modify your like method to have a String (a Twitter handle) parameter and only increase the like count if the given Twitter handle is unique.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started