A simple JVMTI agent in Windows using MinGW/Cygwin.
A blog about my daily tech ramblings.
Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Wednesday, 30 September 2015
Friday, 4 September 2015
Conditionally ignoring tests in JUnit
We might require to ignore a jUnit test based on a certain condition. jUnit just comes up with a @Ignore annotation which can be used to ignore the test.
We can use the below code to check if the condition has been met or not to ignore a test.
We can use the below code to check if the condition has been met or not to ignore a test.
Reference : http://stackoverflow.com/questions/1689242/conditionally-ignoring-tests-in-junit-4
Wednesday, 5 November 2014
A simple job scheduler using camel-quartz component
A simple scheduler using camel-quartz component.
Wednesday, 27 August 2014
Change User password using OpenDS SDK
Changing User's Password using OpenDS SDK.
Friday, 2 December 2011
Using proxy via Apache HttpClient
Introduction
Using proxy with a Apache HttpClient
Usage
10038 Jolly Jumpers
Problem E: Jolly Jumpers
1 4 2 3is a jolly jumper, because the absolutes differences are 3, 2, and 1 respectively. The definition implies that any sequence of a single integer is a jolly jumper. You are to write a program to determine whether or not each of a number of sequences is a jolly jumper.
Input
Each line of input contains an integer n <= 3000 followed by n integers representing the sequence.Output
For each line of input, generate a line of output saying "Jolly" or "Not jolly".Sample Input
4 1 4 2 3 5 1 4 2 -1 6
Sample Output
Jolly Not jolly
Solution