Skip to content

Instantly share code, notes, and snippets.

View manjaykumardp's full-sized avatar
💫
I may be slow to respond.

manjay kumar manjaykumardp

💫
I may be slow to respond.
View GitHub Profile
@manjaykumardp
manjaykumardp / inputarray.java
Created February 19, 2022 16:01
Input array and print it in Java
package com.manjay;
import java.util.Scanner;
public class inputarray {
public static void main(String[] args) {
System.out.println("Enter numbers of element");
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int[] arr = new int[num];
@manjaykumardp
manjaykumardp / oops.java
Last active February 19, 2022 16:46
Using oops concept class is created for use
package oops;
//import javax.security.auth.Subject;
public class oops {
public static void main(String[] args) {
//System.out.println("Person Name and Age");
{ //college name
college c = new college();
@manjaykumardp
manjaykumardp / vehicle.java
Last active November 16, 2022 09:19
Use cases:
package data.structure.java;
class person{
private String name;
private String noOfVehicle;
private String vehicle1;
private String Vehicle2;
void setPersonDetails(String newName,String noOfVehicle,String vehicle1,String vehicle2){
this.name=newName;
this.noOfVehicle=noOfVehicle;
this.vehicle1=vehicle1;