Home » » Package using input in Java Program

Package using input in Java Program

Package using input in Java Program

Package using input in Java Program

Package using input in Java Program

package sans;
import java.io.*;
public class vijay
{
public void display() throws IOException
{
DataInputStream in =new DataInputStream(System.in);
{
string name;
int age;
System.out.println("Enter the name and age is:");
name=in.readLine();
age=Integer.parseInt(in.readLine());
System.out.println("The given name is"+name);
System.out.printlln("The given age is:"+age);
}
}
}

import sans.vijay
import java.io.*;
class MainEg
{
public Static void main(String args[]) throws IOException
{
vijay v=new vijay();
v.display();
}
}


0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g