How to check if a file exists in java?

How to check if a file exists in java?
DeeKay March 19, 2012 at 1:12 am · java.io

Below Java code shows how to check if a file exists –


How to create directories recursively in java?

How to create directories recursively in java?
DeeKay March 8, 2012 at 1:12 am · java.io

Below java code shows how to create directories recursively –


How to change a file attribute to read only in java?

How to change a file attribute to read only in java?
DeeKay March 8, 2012 at 12:58 am · java.io

Below java code shows how to change file attribute to read only –


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# –


How to use while loop statement in C#?

How to use while loop statement in C#?
DeeKay October 29, 2011 at 3:44 pm · basic

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


How to use comments in C# source code?

How to use comments in C# source code?
DeeKay October 29, 2011 at 2:53 pm · basic

Below code shows how to add comments to c#/csharp source code


How to use foreach loop statement in c#?

How to use foreach loop statement in c#?
DeeKay October 29, 2011 at 2:38 pm · basic

Below code shows how to use foreach loop statement to iterate an array in c#/csharp –


How to use for loop statement in c#?

How to use for loop statement in c#?
DeeKay October 29, 2011 at 3:56 am · basic

Below code shows how to use for loop statement in C# –


How to read command line arguments in c# ?

How to read command line arguments in c# ?
DeeKay October 29, 2011 at 3:40 am · basic

Below c#/csharp code shows how to read command line arguments and print it on console.


How to create Hello World Program in csharp/c# ?

How to create Hello World Program in csharp/c# ?
DeeKay October 29, 2011 at 3:27 am · basic

Below is the basic CSharp/C# program to print Hello World on console –


How to convert Array to List in java?

How to convert Array to List in java?
DeeKay October 6, 2011 at 7:39 pm · java.util

Below code example show how to convert an array to List in java. To convert array based data into list, we can use java.util.Arrays class. This class provide a static method asList(Object[] a) that converts array into list. OUTPUT: TOM JACK JILL JANE