Printing data of an class object without THIS keyword


class StudentData2{
int rollNo;
String name;
static String college = "VCE";
//constructor to assign value;
StudentData2(int rollNo, String Name){
//As both variables (local and instance) are same
// zero and null value will be printed;
rollNo = rollNo;
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 TestStudent2{
public static void main(String args[]){
StudentData2 s1 = new StudentData2(123,"Niharika");
StudentData2 s2 = new StudentData2(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...