Professional Documents
Culture Documents
Programs
Programs
*;
import java.util.Scanner;
class Student
long phone;
usn = u;
name = n;
branch = b;
phone = p;
void display ()
int i;
int n = sc.nextInt();
String na = sc.next();
String br = sc.next();
long ph = sc.nextLong();
s[i].display();
import java.io.*;
import java.util.Scanner;
class Stack
maxsize = s;
top = -1;
else
stack[++top] = pu;
if (top == -1)
else
int i;
if(top == -1)
else
System.out.println(stack[i]);
int n = sc.nextInt();
int choice;
do {
choice = sc.nextInt();
switch(choice)
s.push(item);
break;
case 2: s.pop();
break;
case 3: s.display();
break;
case 4: break;