Madam/sir,Can't we make a loop of Class say to save the data of employees in say a Class named EMPDATA no. of times using loop of an object of that class like we do in case of a C++ program likeClass EmpDATA{String name;int age;......................}s[5];for(int i=0;i<5;i++){String a;int t;cin>>t;cin>>a;s[i].name=a;s[i].age=t;}for(int i=0;i<5;i++){cout<<"name="<<s[i].name;cout<<"age"=s[i].age;.......... }
When would be the upcoming online test on java?
328 visits
Outline:Strings *char datatype *letter,digit,punctuation marks, tab, or space are all characters *Program explaining the variable and the character data *Introduction to strings *Creating string by Direct Initialization *Creating string by using new operator *String length() *String concat() *String toUpperCase() *String toLowerCase()
Strings *char datatype *letter,digit,punctuation marks, tab, or space are all characters *Program explaining the variable and the character data *Introduction to strings *Creating string by Direct Initialization *Creating string by using new operator *String length() *String concat() *String toUpperCase() *String toLowerCase()
Show video info
Pre-requisite