Question: at3 method gets two strings and returns a string. the first string is the one that will be manipulated. at the 3rd char position of

at3 method gets two strings and returns a string.

the first string is the one that will be manipulated. at the 3rd char position of target you will insert the word argument.

example use:

at3("longword","foo")

will return: "lonfoogword"

at3("blabla","a")

will return: "blaabla"

----------------------------

import java.util.*;

class Main { // your main method here public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter target:"); String target = scan.next(); System.out.println("Enter word:"); String word = scan.next(); System.out.println(at3(target, word)); } public static String at3(String target,String word) { //your code here } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!