Programming

Java REPL - jshell — step-by-step Programming tutorial on Progressive Robot

Java REPL – jshell

URL: https://www.progressiverobot.com/java-repl-jshell/ Java REPL or jshell is the new tool introduced in [java 9](/community/tutorials/java-9-features-with-examples). Today we will look into Java REPL basics and run some test programs in jshell interface. Java REPL Let's first try to understand why REPL support was added in Java, if it was that important then why in so late release. […]

Read more
Java String Interview Questions and Answers — step-by-step Programming tutorial on Progressive Robot

Java String Interview Questions and Answers

URL: https://www.progressiverobot.com/java-string-interview-questions-and-answers/ Introduction String is one of the most widely used Java classes. This article provides some practice questions and answers about String to help you prepare for an interview. You can also try the [Java String Quiz](/community/tutorials/java-string-quiz) to test your knowledge of the String class. What is the String class in Java? Is String […]

Read more
java.util.ConcurrentModificationException — step-by-step Programming tutorial on Progressive Robot

java.util.ConcurrentModificationException

Java Collection classes are fail-fast which means that if the Collection will be changed while some thread is traversing over it using iterator, the iterator.next() will throw ConcurrentModificationException. This situation can come in case of multithreaded as well as single threaded environment.

Read more
json-simple example — step-by-step Programming tutorial on Progressive Robot

json-simple example

URL: https://www.progressiverobot.com/json-simple-example/ json-simple is a simple java toolkit for JSON. json-simple library is fully compliance with JSON specification (RFC4627). json-simple ![json-simple, json simple example, json example](images/json-simple-example-section-1.png) json-simple uses [Map](/community/tutorials/java-map) and [List](/community/tutorials/java-list) internally for JSON processing. We can use json-simple for parsing JSON data as well as writing JSON to file. One of the best feature […]

Read more
Logger in Java - Java Logging Example — step-by-step Programming tutorial on Progressive Robot

Logger in Java – Java Logging Example

URL: https://www.progressiverobot.com/logger-in-java-logging-example/ Today we will look into Logger in Java. Java Logger provides logging in java programming. Logger in Java ![logger in java, java logging example](images/logger-in-java-logging-example-section-1.png) Java Logging API was introduced in 1.4 and you can use java logging API to log application messages. In this java logging tutorial, we will learn basic features of […]

Read more
Servlet JSP Tutorial — step-by-step Programming tutorial on Progressive Robot

Servlet JSP Tutorial

URL: https://www.progressiverobot.com/servlet-jsp-tutorial/ Servlet JSP technologies are backbone of Java EE programming. Recently I have written a lot about Servlet and JSP programming and this is a summary post for Servlet JSP Tutorials where I am providing all the article links in the order to read them. Servlet JSP Tutorial ![Servlet JSP Tutorial, JSP Tutorial, JSP […]

Read more
String to char array java - convert string to char — step-by-step Programming tutorial on Progressive Robot

String to char array java – convert string to char

URL: https://www.progressiverobot.com/string-char-array-java/ Sometimes we have to convert String to the character array in java programs or convert a string to char from specific index. String to char Java ![string to char java, string to char array](images/string-char-array-java-section-1.png) String class has three methods related to char. Let's look at them before we look at a java program […]

Read more
Tomcat DataSource JNDI Example in Java — step-by-step Programming tutorial on Progressive Robot

Tomcat DataSource JNDI Example in Java

URL: https://www.progressiverobot.com/tomcat-datasource-jndi-example-java/ Welcome to Tomcat DataSource JNDI Example Tutorial. We looked at the [JDBC DataSource](/community/tutorials/java-datasource-jdbc-datasource-example "JDBC DataSource Example – Oracle, MySQL and Apache DBCP Tutorial") in the last tutorial and learned how to use that in standalone java application. Tomcat DataSource JNDI ![tomcat datasource, jndi example, tomcat jndi, jndi tutorial](images/tomcat-datasource-jndi-example-java-section-1.png) Actual benefit of DataSource comes […]

Read more
CHAT