Skip to content

Instantly share code, notes, and snippets.

View laxmankumar2000's full-sized avatar

Laxman Kumar laxmankumar2000

  • Mathura UP
View GitHub Profile
@laxmankumar2000
laxmankumar2000 / SecLargest.java
Created January 23, 2021 05:04
ArrayIndexOutOfBoundsexception
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++)
{
@laxmankumar2000
laxmankumar2000 / CheckAnagram.java
Created January 23, 2021 15:05
String_Anagram
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
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
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;
@laxmankumar2000
laxmankumar2000 / Array_Stcak.java
Created February 11, 2021 00:51
STACK USint Array
package Stack;
import java.nio.file.StandardOpenOption;
class Array_Stcak {
int arr[];
int TopOfStack;
public Array_Stcak(int size)
{
@laxmankumar2000
laxmankumar2000 / QueueByArray.java
Created February 17, 2021 11:45
Implementation of Queue By Array
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
package Genaric;
import pog1.Employee;
interface Mystack<t> {
public void push(t data);
public t pop();
public t peek();
public boolean isEmpty();
package Genaric;
class employee2 {
int id;
String name;
int salary;
public employee2(int id, String name, int salary) {
this.id = id;
this.name = name;
package Genaric;
public class node<t> {
t data;
node<t> next;
public node(t data) {
this.data = data;
next = null;
}
package Exma;
import java.security.PublicKey;
public class Exampratice {
// 1.LINKED LIST
/*
class node