Computer Science, asked by ravisharma9058641059, 4 months ago

Write a java program to print name,class,roll no and result​

Answers

Answered by swathi21025
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