Write a java program to print name,class,roll no and result
Answers
Answered by
0
Answer:
import java.lang. *;
class InputDemo
{
static int rollno=1553;
static String name ="Xavier";
static void display( )
{
System.out.println("Rollno: " + rollno);
System.out.println("Name : "+ name);
}
public static void main(String args[] )
{
display ( );
}
}
Similar questions
Political Science,
2 months ago
English,
2 months ago
Science,
2 months ago
English,
4 months ago
Biology,
9 months ago