Computer Science, asked by championg48, 3 months ago

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:

Answers

Answered by princejoy007
0

Answer:

thank you for free point

Similar questions