This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.*; | |
| class StudentForm { | |
| StudentForm() { | |
| Label l1 = new Label("Student Name:"); | |
| Label l2 = new Label("Student Age:"); | |
| Label l3 = new Label("Student DOB:"); | |
| Label l4 = new Label("Student Branch:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Solution{ | |
| public static void main(String args[]){ | |
| Scanner sc = new Scanner(System.in); | |
| int n = sc.nextInt(); | |
| int m = sc.nextInt(); | |
| int a[] = new int[n]; | |
| for(int i = 0; i < a.length; i++){ | |
| a[i] = sc.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Solution{ | |
| public static void main(String args[]){ | |
| Scanner sc = new Scanner(System.in); | |
| int n = sc.nextInt(); | |
| int arr[] = new int[n]; | |
| for(int i = 0; i < arr.length; i++){ | |
| arr[i] = sc.nextInt(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```java | |
| import java.util.*; | |
| public class Solution{ | |
| public static void main(String args[]){ | |
| Scanner sc = new Scanner(System.in); | |
| int k = sc.nextInt(); | |
| int n = sc.nextInt(); | |
| int arr[] = new int[n]; |