Write a recursive method to print a string backwards.

What will be an ideal response?

```
public static void writeBackwards(String s, int size)
{
if(size >0)
{
System.out.print(s.substring(size-1, size));
writeBackwards(s, size-1);
}
}

```

Computer Science & Information Technology

You might also like to view...

What key component of the Windows Server 2016 SDN environment will allow you to move a VM using live migration to a server on a different subnet without having to change the VM's address and with no down time?

A. Hyper-V Network Virtualization B. Network Controller C. Hyper-V dynamic provisioning D. Hyper-V Integration Services

Computer Science & Information Technology

Which of the following classes are in the header file ?

A. X B. runtime_error C. bad_exception D. overflow_error E. exception

Computer Science & Information Technology