Category Uncategorized

How to run local server in android

Adding Library We are assuming that you have already created your project. So lets skip that part. We are going add a library. Open your app level build.gradle and add this line: implementation ‘com.nanohttpd:nanohttpd-webserver:+’ and sync it. Start/Stop Server We…

Java Calculate Percentage

Calculating percentage in java is very easy. Just follow the simple mathematics, No need to do anything extra. The math is: Gained value / total value * 100. That’s it. Here is the java code:

Classes and Objects in Java

Classes and Objects in Java

Class Think about our life in this world. We are the people living all together. Think about our surroundings. Think about our environments. There are animals, there are trees, there are forests, buildings, vehicles, mountains, sea, rivers and many more…

What is Java?

Java is a general purpose programming language which is very popular and at the same time it used by world wide. It is an well structured class based, concurrent and object oriented programming language. There are so many applications and…