Domanda di colloquio di Amdocs

How to code a program to get the reverse of a string?

Risposte di colloquio

Anonimo

28 apr 2020

//Reverse a String public class Reverse { public static void main(String[] args) { String s = "Selenium"; String rev =""; for(int i=s.length();i>0;i--) { rev =rev+s.charAt(i-1); } System.out.println(rev); }

2

Anonimo

26 mag 2018

Wrote down the logic, explained the process and then wrote the code. They were expecting the same.

1