Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

LO1 Identify why performance management is necessary.

Answered: 1 week ago