This file contains 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
package Array_Pragrom; | |
import java.util.Scanner; | |
public class SecLargest { | |
public static int geLargest(int arr[] , int num) | |
{ | |
int temp = 0; | |
for(int i =0; i<arr.length ; i++) | |
{ |
This file contains 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
package CombineProgram; | |
import java.util.Arrays; | |
import java.util.Locale; | |
import java.util.Scanner; | |
public class CheckAnagram { | |
public static void IsAnagram(String str1 , String str2) //Method | |
{ | |
str1 = str1.replaceAll("\\s" , ""); //Remove space from 1st String |
This file contains 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
package CombineProgram; | |
import java.util.Arrays; | |
import java.util.Locale; | |
import java.util.Scanner; | |
public class CheckAnagram { | |
public static void IsAnagram(String str1 , String str2) //Method | |
{ | |
str1 = str1.replaceAll("\\s" , ""); //Remove space from 1st String |
This file contains 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
package Student; | |
import java.util.Scanner; | |
public class Student { | |
private int StuRollNo; //Instance Variable | |
private String StuName; | |
private int Sub1; | |
private int SUb2; | |
private int Sub3; |
This file contains 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
package Stack; | |
import java.nio.file.StandardOpenOption; | |
class Array_Stcak { | |
int arr[]; | |
int TopOfStack; | |
public Array_Stcak(int size) | |
{ |
This file contains 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
package Queue; | |
public class QueueByArray { // Queue Class | |
int arr[] ; //Array intiliazation | |
int begining; //Attributes | |
int top; | |
public QueueByArray(int size) //Conctructor | |
{ | |
arr =new int[size]; //array declaration |
This file contains 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
package Genaric; | |
import pog1.Employee; | |
interface Mystack<t> { | |
public void push(t data); | |
public t pop(); | |
public t peek(); | |
public boolean isEmpty(); |
This file contains 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
package Genaric; | |
class employee2 { | |
int id; | |
String name; | |
int salary; | |
public employee2(int id, String name, int salary) { | |
this.id = id; | |
this.name = name; |
This file contains 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
package Genaric; | |
public class node<t> { | |
t data; | |
node<t> next; | |
public node(t data) { | |
this.data = data; | |
next = null; | |
} |
This file contains 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
package Exma; | |
import java.security.PublicKey; | |
public class Exampratice { | |
// 1.LINKED LIST | |
/* | |
class node |
OlderNewer