How to find if a pathname is a directory in java?

How to find if a pathname is a directory in java?
DeeKay March 8, 2012 at 12:24 am · java.io

Below java code shows how to find whether the specified path is directory or file –


How to display file contents into Hexadecimal format in java?

How to display file contents into Hexadecimal format in java?
DeeKay March 6, 2012 at 11:33 pm · java.io

Below java code shows how to convert and display file contents into Hexadecimal format –  


How to List Files and Sub-directories in a Directory in Java?

How to List Files and Sub-directories in a Directory in Java?
DeeKay March 6, 2012 at 12:17 am · java.io

Below java code shows how to list files and sub-directories in a directory –  


How to load a File into Byte Array in Java ?

How to load a File into Byte Array in Java ?
DeeKay March 5, 2012 at 11:57 pm · java.io

Below java code shows how to load a file into Byte Array and print the Byte Array –  


How to write Exception’s PrintStackTrace to a File in Java?

How to write Exception’s PrintStackTrace to a File in Java?
DeeKay March 5, 2012 at 7:00 pm · java.io

Usually when you generate an exception in a Java program, you just print the exception to standard output using below code statement System.out.println(“Got an Exception: ” + e.getMessage()); But this is not what you want. Sometime you want to write Exception’s PrintStackTrace to a file and below Java program shows you how to write Exception’s…
Continue Reading »


Deploying a Java EE application on OpenShift Express with AS7 support

Deploying a Java EE application on OpenShift Express with AS7 support
Jaikiran November 30, 2011 at 1:50 am · JBoss, Open Source

During the past few years, I’ve been hearing about “cloud” services more and more. Initially I wasn’t really curious to try them out. But a few months (a year?) back, I decided to see what it was all about. I have been involved with Java EE development for more than 7 years now, so I…
Continue Reading »


How to determine the type of a Character in C#?

How to determine the type of a Character in C#?
DeeKay October 31, 2011 at 12:09 am · System

Below code show how to determine the type of a character in CSharp/C# –


How to use continue statement in C#?

How to use continue statement in C#?
DeeKay October 30, 2011 at 1:12 am · basic

Below code shows how to use continue statement in csharp/C# –


How to use if-else statement in C#?

How to use if-else statement in C#?
DeeKay October 30, 2011 at 12:47 am · basic

Below code shows how to use if-else statement in csharp/c# –


How to use do-while loop statement in C#?

How to use do-while loop statement in C#?
DeeKay October 30, 2011 at 12:26 am · basic

Below code shows how to use do-while loop statement in csharp/C# –