/* package whatever; // don't place package name! */
/* The class name doesn't have to be Main, as long as the class is not public. */
class Main
{
publicstaticvoid main (String[] args)throws java.lang.Exception
{
String unwieldy ="The average New York City taxi cab driver makes $90,747 in revenue per year. There are roughly 13,267 cabs in the city. In 2007, NYC forced cab drivers to begin taking credit cards, which involved installing a touch screen system for payment. During payment, the user is presented with three default buttons for tipping: 20%, 25%, and 30%. When cabs were cash only, the average tip was roughly 10%. After the introduction of this system, the tip percentage jumped to 22%. Those three buttons resulted in $144,146,165 of additional tips. Per year. Those are some very valuable buttons.";
String thenextweb ="If you’ve ever been to the city of New York during the past five years, you’ll know that cab drivers don’t always give off a warm and cuddly feeling. This was especially true for short trips, where I’d whip out my debit card and have to argue with the driver that I didn’t have any cash on me ’til he finally gave in. Lately, however, the attitude towards paying with cards seems to have shifted — just in time for our new in-cab iPads. So, what’s caused the change? Here’s what one Joshua Gross found: The average New York City taxi driver makes $90,747 in gross revenue per year (less some hefty operating expenses). In 2007, NYC required cab drivers to begin accepting cards, which involved installing a touch screen system for payment in all ~13,267 cars. During payment, users are shown three default buttons for tipping: 20%, 25% and 30%. Back when cabs were cash-only, the average tip was around a modest 10%. But since this system was introduced system, the average tipping percentage jumped to 22%. “Those three buttons resulted in $144,146,165 of additional tips. Per year. Those are some very valuable buttons (via Joshua Gross).”";
String thenextwebBottomHalf ="The average New York City taxi driver makes $90,747 in gross revenue per year (less some hefty operating expenses). In 2007, NYC required cab drivers to begin accepting cards, which involved installing a touch screen system for payment in all ~13,267 cars. During payment, users are shown three default buttons for tipping: 20%, 25% and 30%. Back when cabs were cash-only, the average tip was around a modest 10%. But since this system was introduced system, the average tipping percentage jumped to 22%. “Those three buttons resulted in $144,146,165 of additional tips. Per year. Those are some very valuable buttons (via Joshua Gross).”";
System.out.println("There is a "+ diff +"% difference between Unwieldy's article and TheNextWeb's ("+(100- diff)+".% similar).");
System.out.println("If you remove the intro from TheNextWeb's article, there is a "+ diffBottomHalf +"% difference between Unwieldy's article and TheNextWeb's ("+(100- diffBottomHalf)+".% similar).");
There is a 58.632778264680105% difference between Unwieldy's article and TheNextWeb's (41.367221735319895.% similar).
If you remove the intro from TheNextWeb's article, there is a 28.213166144200624% difference between Unwieldy's article and TheNextWeb's (71.78683385579937.% similar).