Using THIS keyword


 class StudentData3{
int rollNo;
String name;
static String college = "VCE";
//constructor to assign value;
StudentData3(int rollNo, String name){
this.rollNo = rollNo;
this.name = name;
}

void display(){
System.out.println("Roll no of student is :" + rollNo);
System.out.println("Name of student is :" + name);
System.out.println("Collge of student is :" + college);
}
}
public class TestStudent3{
public static void main(String args[]){
StudentData3 s1 = new StudentData3(123,"Niharika");
StudentData3 s2 = new StudentData3(345,"Kayna");
System.out.println("---------------------------------------------------");
System.out.println("Details of First Student");
s1.display();//calling display method
System.out.println("---------------------------------------------------");
System.out.println("Details of Second Student");
s2.display();//calling display method
System.out.println("---------------------------------------------------");
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...