For this Question: Create a class named 'Student' with String variable 'name' and integer variable 'rollNumber'. 

You need to perform the below operations in <b>myFunction()</b>:
<ul>
<li>Assign the value of <b>rollNumber</b> as given by the user</li>
<li>Assign the value of <b>name</b> as given by the user</li>
</ul>The input contains a single line of String and integer value separated by space.You just have to assign values to Student class attributes. The driver code is handling the outputInput:
Gaurav 1

Output:
Gaurav 1

Input:
Swapnil 2

Output:
Swapnil 2, I have written this Solution Code: 

     class Student {
		String name;
		int rollNumber;
	

	public void myFunction (String name, int rollNumber){
		this.name = name;
		this.rollNumber = rollNumber;
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?