Give output of the following Java snippet. Also show the dry run / working of the
program.
void find (int a)
{
String s = Integer.toString (a);
int l = s.length ( );
for (int j = 0; j < l; j++)
{
c = s.chartAt (j);
p = c + p;
}
string p="";
System.out.println (“Prediction ” + p);
}
[i] What will be the value of find (243) ?
[ii] What will be the value of find (685) ?
[iii] What is the purpose of find ( ) function in the above snippet ?
please help
Attachments:
![](https://hi-static.z-dn.net/files/d96/14c9cbf1a89976fe1d3198d835e50270.jpg)
Answers
Answered by
0
Answer:
thank you for free point
Similar questions