Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Using a String class methods, write a java program to do the following: [4 Marks] - Calculate the factorial of a given number. -

image text in transcribed

1. Using a String class methods, write a java program to do the following: [4 Marks] - Calculate the factorial of a given number. - Calculate the summation of numbers. 2. Write a Java program to create an ArrayList called list which is of a type String. Then using a proper method to: [2 Marks] - Enter the following values to list: \{"kiwi", "strawberry", "apple", "Mango" 3. Write a java code to specify the index of value (50) from the following array Using sequntial Algorithm 10,20,30,40,50,60,70,80,90,100 [2 Marks] 4. Set up a 2D array to hold the following values: [26 135 ] and print it using for loop. : [2 Marks]

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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions