How to use Node.js Url Module to route application using url.pathname

Node.js Url Module is used to split URL into readable parts which can be hostname,pathname etc.Its inbuilt Node.js module. Including Node.js Url Module To use url module add below code

http url routing using url.pathname Below code creates a http server that accepts  http requests and forwards them accordingly.

Open your browser and enter […]

Read More


How to check if a string contains a digit and return true in Java

String class in java represent character strings .Just like other constants Strings values cannot be changed.String objects  can be shared and they are immutable.Example of a  string in java String str=”Eric loves programming”. Today we are going to use different String class methods to write a method that returns true if a string contains a […]

Read More