I have three Java assignments that I need to be completed as soon as possible, all of them involve around methods/ArrayList if you can help me with these it would be greatly appreciated.

1 answer below »
I have three Java assignments that I need to be completed as soon as possible, all of them involve around methods/ArrayList if you can help me with these it would be greatly appreciated.
Answered Same DayDec 12, 2021

Answer To: I have three Java assignments that I need to be completed as soon as possible, all of them involve...

Arun Shankar answered on Dec 17 2021
153 Votes
import java.util.Scanner;
class Q2
{
public static void printSpaces(int count)
{
for(in
t i = 0; i < count; ++i)
System.out.print(" ");
}
public static void fun(String title, String topic, String author)
{
int alen = title.length();
int blen = topic.length();
int clen = author.length();
int maxlen = alen;
if(maxlen < blen)
maxlen = blen;
if(maxlen < clen)
maxlen = clen;

for(int i = 0; i < maxlen + 4; ++i)
System.out.print("*");
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here