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 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; |
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 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(); |
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 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]; |