Skip to content

Instantly share code, notes, and snippets.

@ashwin-sp
Last active June 3, 2018 17:44
Show Gist options
  • Save ashwin-sp/7c32114bed82ffb635939ce05db47fc6 to your computer and use it in GitHub Desktop.
Save ashwin-sp/7c32114bed82ffb635939ce05db47fc6 to your computer and use it in GitHub Desktop.
Data Class reference in Java file
data class Student(var name: String, var regNo: Long, var gender: String, var address: String, var phNo: Long)
/** Equivalent Java reference
Student std1 = new Student("Ashwin", 111712104013L, "Male", "Chennai", 4353453453L )
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment