Search results for: Java

In this Java tutorial I am going to share with you how to create an Anonymous java class and also how to Replace Java Anonymous Class with a shorter lambda expression. Let’s start by creating and interface which we will use in this tutorial. Our anonymous java class will implement a single method defined in this java…

Read More Replace Anonymous Java Class with Lambda Expression

In this short code example I am going to share with you how to concatenate two ArrayList in Java.  Concatenate ArrayList using addAll() function Let’s say we have these two ArrayList(s): List<String> itemsList1 = new ArrayList(Arrays.asList(“One”, “Two”)); List<String> itemsList2 = new ArrayList(Arrays.asList(“Three”, “Four”)); To concatenate the two lists together we can create a new ArrayList, and…

Read More Concatenate Two ArrayList in Java

Hi guys! Just wanted to share with you a new blog post and that I am about to publish a series of blog posts + videos on How to build…

The post RESTful Web Services with Java for your Swift Mobile Application appeared first on Swift Developer Blog.

Read More RESTful Web Services with Java for your Swift Mobile Application

Hibernate is a great framework to use to persist data into a database when building RESTful Web Services for your mobile application with Jersey and JAX-RS. In most of the projects I have participated when designing RESTful Web Services for Mobile App we used MySQL database server and Hibernate framework to store user data which…

Read More Persist Java Object in MySQL Database With Hibernate

WKWebView is a powerful class in the WebKit framework that allows you to embed web content in your iOS app. It’s essentially a mini-browser that provides a rich, interactive web experience within your application. Unlike UIWebView, which was deprecated and removed from iOS 12 onwards, WKWebView is more efficient, has better performance, and offers advanced features like…

Read More Create WKWebView Programmatically and Load Webpage URL

In this tutorial, you will learn about the retryable and non-retryable exceptions in Apache Kafka. You’ll learn how to create your own custom exceptions and how to register then with Kafka’s DefaultErrorHandler object. To demonstrate how retryable and not retryable exceptions work, I will use the Kafka Consumer Spring Boot Microservice, which I created earlier.…

Read More Retryable and Not Retryable Exceptions in Apache Kafka

In this tutorial, you will learn how recover from deserialization errors gracefully in your Kafka Consumer Spring Boot Microservice. You’ll see how to use specific settings to ensure that a single problematic message doesn’t disrupt your message processing. By the end, your consumer will be able to skip over errors and continue processing subsequent messages…

Read More Kafka Consumer: Handle Deserialization Errors