Questions

Login to create Question


Invalid character found in method name. HTTP method names must be tokens

Getting following error while running in local Invalid character found in method name. HTTP method names must be tokens

Views: 7862

1 year ago by d20160501

Making sure a directory with given path exists in Java

How can i make sure a directory exists in file system with the given path?

Views: 668

1 year ago by noder

How to get current Year in Java?

How to get current Year in Java?

Views: 1908

1 year ago by noder

How to add given number of hours to Date Object in Java?

How to add given number of hours to Date Object in Java?

Views: 165

1 year ago by noder

How to calculate time difference between two Timezones in Java

How to calculate time difference between two Timezones in Java

Views: 1046

1 year ago by noder

Difference between ClassNotFoundException vs NoClassDefFoundError in Java

Here i am explaining you difference between ClassNotFoundException and NoClassDefFoundError in Java

Views: 170

2 years ago by ShivaSanthosh

Getting 'No EntityManager with actual transaction available for current thread' exception while removing some data

How to fix the following exception javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call

Views: 7891

2 years ago by ffc

How to trim leading and trailing whitespaces in String in Java

How to trim whitespaces at beginning & ending in String in Java

Views: 199

2 years ago by ffc

How to convert String into Date in one line in Java

Converting a Date String to Date Object ( java.util.Date ) in Java

Views: 325

2 years ago by ffc

Unable to start Spring Boot + PostgreSQL App, Getting org.postgresql.util.PSQLException: FATAL: password authentication failed for user

How to fix 'org.postgresql.util.PSQLException: FATAL: password authentication failed for user o.a.tomcat.jdbc.pool.ConnectionPool : Unable to create initial connections of pool.

Views: 2256

2 years ago by ffc

How to print all module names with packages in Java9

Java program to print all modules with its packages in Java9

Views: 220

2 years ago by ffc

How to print all module names in Java9

Java program to print all module names. This prints all module names loaded by Class Loader

Views: 158

2 years ago by ffc

How to define variables in Java9 jshell

How to define variables with values in Java9's jshell? How to assign values to int, long, float, double & String type variables?

Views: 153

2 years ago by ffc

What are all the snippets are automatically loaded with Java9 JShell

What are all the snippets are loaded by default when jshell starts.

Views: 162

2 years ago by ffc

How to use Java9 JShell

How to start a jshell session on command prompt

Views: 155

2 years ago by ffc

How to exit from Java9 JShell

How to exit from Java9's jshell

Views: 157

2 years ago by ffc

How to write content from a String into File in Java?

I have a string that to be written into a File, How can i do that in Java?

Views: 153

2 years ago by ffc

Filter all files with a particular extension in Java

How can i filter files with particular extension in Java, let say i want to filter all .json files from a folder.

Views: 159

2 years ago by ffc

How to get Host name in Java

Hot to get the System name/ Host name/ Machine name in Java?

Views: 153

2 years ago by ffc

How to read a File content into String in Java?

How can i read the full content of a file into a String in Java?

Views: 170

2 years ago by ffc