Home » Archives for Nikos Maravitsas

Author Archives: Nikos Maravitsas

Nikos has graduated from the Department of Informatics and Telecommunications of The National and Kapodistrian University of Athens. During his studies he discovered his interests about software development and he has successfully completed numerous assignments in a variety of fields. Currently, his main interests are system’s security, parallel systems, artificial intelligence, operating systems, system programming, telecommunications, web applications, human – machine interaction and mobile development.

Eclipse Oxygen XML Editor plugin tutorial

In this example we are going to see how you can install and use an XML editor for your Eclipse IDE. XML is a mark-up language that has its own unique characteristics, and it’s used in a vast number of applications, mostly web based, but in recent years it plays a crucial role generally in universal, platform independent information exchanging ...

Read More »

java.util.concurrent.RejectedExecutionException – How to solve RejectedExecutionException

In this example we are going to talk about java.util.concurrent.RejectedExecutionException. When using an Executor to run your threads, it might reach a state where it cannot run the task you asked him to. This can happen for a number of reason, as we will demonstrate in this example. It is worth noting that this is a java.lang.RuntimeException       ...

Read More »

Eclipse class diagram example

In this tutorial we are going to see how you can generate UML class diagrams from your source code, using Eclipse. Class diagrams are an extremely helpful tool, visualizing the structure of the code of your project. It is a very good companion for your documentation. There are many Eclipse plugins that do class diagrams and most of them are ...

Read More »

Java Delete File Example

In this example, we are going to explain how to delete a file in Java. Of course, Java offers a very convenient API to perform deletion and creation. Most of them are placed in File class. We are going to use delete() methods that delete the file or directory. If the file is deleted successfully, the methods returns true, else ...

Read More »

java.security.InvalidKeyException – How to solve InvalidKeyException

In this example we are going to talk about java.security.InvalidKeyException. It is probably the most common exception you will stumble upon when handling encryption in your Java application. java.security.InvalidKeyException is a subclass of java.security.KeyException which in turn is a subclass of java.security.GeneralSecurityException. As the name suggests, InvalidKeyException emerges when there is something wrong with the encryption key you are trying ...

Read More »

Java Prime Numbers Example

In this example we are going to talk about prime numbers. Prime numbers are one of the most important subsets of physical numbers. A positive integer p > 1 is a prime if and only if its positive divisors are only itself and 1. For example, 5,13,17,19,23 and so on. It is interesting that Euclid proved that there is no ...

Read More »

Palindrome Java Program

In this example, we are going to see a Palindrome Java Program, to check whether a String is a palindrome. A String is considered a palindrome if it can be similarly read both from left to right and from right to left. For example "abbcbba", “12321”, “69796” are all palindromes. 1. Palindrome Java Program – Simple approach It’s very easy ...

Read More »

Java Factorial Program

In this example we are going to talk about a classic programming task, as we are going to create a Java program that computes the factorial of a non negative integer. Those of you who know your math, you should already know: The factorial of a positive integer n, annotated n!, is the product of all positive integers from 1 ...

Read More »

java.rmi.RemoteException – How to solve RemoteException

In this example we are going to talk about java.rmi.RemoteException. This the most general checked exception that may occur during the lookup or the execution of a Remote Procedure Call (RPC). As might you know, Java provides a very convenient API that enables you to create remote servers that can host Remote Procedure Cal services, as well as clients that ...

Read More »