After knowing arrays topic how to do dsa in arrays , like how to approach each question i am losing focus so much but still I want to learn and move to next data structure.
import java.util.Scanner; public class ArrayInput { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Array ke size ka input dein: "); int size = scanner.nextInt(); int[] array = new int[size]; System.out.println("Array ke elements ka input dein:"); for (int i = 0; i < size; i++) { System.out.print("Element " + (i + 1) + ": "); array[i] = scanner.nextInt(); } System.out.println("Array ke elements:"); for (int i = 0; i < size; i++) { System.out.print(array[i] + " "); } scanner.close(); } }
Bhaiya will you cover oops , DSA in this course ??
Bhaiya, please complete full Java series
🔥🔥🔥🔥🔥
best video till date
where I can get your live class
Thanks You so much for that'
After knowing arrays topic how to do dsa in arrays , like how to approach each question i am losing focus so much but still I want to learn and move to next data structure.
Bro first tell me how to learn starting arrays first
bhaiya please complete dsa
Please try spring boot full playlist
java ka array me pointer arithmetic nhi kar sakte toh aap kaise kardiye
agar user se array k elements lene ho toh vo kese krenge ???
import java.util.Scanner;
public class ArrayInput {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Array ke size ka input dein: ");
int size = scanner.nextInt();
int[] array = new int[size];
System.out.println("Array ke elements ka input dein:");
for (int i = 0; i < size; i++) {
System.out.print("Element " + (i + 1) + ": ");
array[i] = scanner.nextInt();
}
System.out.println("Array ke elements:");
for (int i = 0; i < size; i++) {
System.out.print(array[i] + " ");
}
scanner.close();
}
}
Thankyou for clearing it