Channel ippo group la create pandra alavuku grow agala Saravanan. Ungha doubts ella pls list it in the comment ...il try to clear all ur doubts in a video and upload
@@javaforyou8931 public class reverseArray { static void reverse(int a[], int n) { int[] b = new int[n]; int j = n; for (int i = 0; i < n; i++) { b[j - 1] = a[i]; j = j - 1; } System.out.println("Reversed array is: "); for (int k = 0; k < n; k++) { System.out.println(b[k]); } } public static void main(String[] args) { int [] arr = {10, 20, 30, 40, 50}; reverse(arr, arr.length); } } Mam intha approach la b[j-1] =a[i] And j=j-1 ah mam konjam explain panunga mam
Super akka encapsulation program onu potu kami ga 😊😊
Yes akka interview important question with answer poduga akka communication appudi improve pandrathu any ideas
Hii sis
Suppose if the array contains only one element
?
mam ungala epdi mam contect pandrathu nerya doubts iruku telegram or whatsapp group link iruka mam
Channel ippo group la create pandra alavuku grow agala Saravanan. Ungha doubts ella pls list it in the comment ...il try to clear all ur doubts in a video and upload
@@javaforyou8931 public class reverseArray {
static void reverse(int a[], int n)
{
int[] b = new int[n];
int j = n;
for (int i = 0; i < n; i++) {
b[j - 1] = a[i];
j = j - 1;
}
System.out.println("Reversed array is:
");
for (int k = 0; k < n; k++) {
System.out.println(b[k]);
}
}
public static void main(String[] args)
{
int [] arr = {10, 20, 30, 40, 50};
reverse(arr, arr.length);
}
}
Mam intha approach la b[j-1] =a[i]
And j=j-1 ah mam konjam explain panunga mam
@@saravananarumugam250 Array reverse program innum simple code la upload pandra..il clearly explain ur doubt also in that video..
@@javaforyou8931 mam next video la intha problem kaana logic ah konjam explain panunga mam step by step
@@saravananarumugam250 Done ma
a[]={1,2,4,5,6,6};mam output is coming like this mam