How to fix java.lang.NullPointerException

Posted Under: Programming on Nov 10, 2017
When programming in JAVA often developer see java.lang.NullPointerException. There are reasons as to why this Exception is thrown. So it is best to understand how to fix this exception before the application is deployed in production.

Uppercase Only First Letter of String in Swift IOS

Posted Under: Programming on Nov 9, 2017
To capitalize only first letter of a string in Swift iOS. Below is the code for both Swift 3 and Swift 4.                   

Check PHP Session Exists

Posted Under: Programming on Jun 19, 2017
In PHP, to access session variable stored in $_SESSION array the page must have session_start() method invoked earlier, but when it is called multiple called, it throws PHP Notice "session already started".

Upload File to Server Using Java Servlet

Posted Under: Programming on Mar 3, 2017
File upload is trivial to any web application. Prior to Java Servlet specification 3.0 upload to server required Apache Commons. Now its just a matter of writing a just any other file.

Highlight User Selected Text in Webpage

Posted Under: Programming on Mar 2, 2017
Enhance your user's reading experience on your website by highlighting only the portion of text user selected. Fokus is a simple script that do this simple job in less than 3KB of code.
© Tutorial Jinni