Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a java program (for example stringDemo.java) to create an array of 4 stringDemo objects. Get a line of string from the user as input.

Write a java program (for example stringDemo.java) to create an array of 4 stringDemo objects. Get a line of string from the user as input. Then create 4 methods in the same program for accomplishing the following tasks:

  1. check for palindrome (returns true or false)
  2. get the word counts
  3. get the character counts
  4. get the total digits counts

Then call the four methods using four objects in an array (one object for one method) by taking line of string as input and display the results

Please send me a detailed working code.

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions