Month: June 2017

HTML form data retrieve using javascript

Email Validation

Javascript data retrieve from HTML Form: Js: function display(){ var fname=document.forms[‘myForm’][‘fname’].value; document.getElementById(‘demoName’).innerHTML=fname; var gender=document.forms[‘myForm’][‘gender’].value; document.getElementById(‘demoGender’).innerHTML=gender; var hobb=document.forms[0]; var hob =””; for(i=0; i<hobb.length;i++){ if(hobb[i].checked){ hob=hob+hobb[i].value+”, “; } } document.getElementById(‘demoGHobby’).innerHTML=hob; var en=document.forms[1]; var entry =””; for(i=0; i<en.length;i++){ if(en[i].checked){ entry=entry+en[i].value+”, “; } }

What is Generics?

What is Generics?

Generics is one type of facility of the generic programming and in 2004, it was added to the Java programming language in the java official release version J2SE 5.0

In 1998, Gilad Bracha, David Stoutamire, Martin Odersky and Philip Wadler created Generic Java as an extension to the Java language to support generic types. Generic Java was merged in Java with the addition of wildcards.