November 30, 2012

How to copy images from ms word documents

How to copy images from ms word documents 2000, 2003, 2007, 2010 to computer/ How to download resources(images) in a microsoft office document to my system.

Description: The tutorial help you to save images on microsoft word documents(.doc file ) into your system. If you cant right click on image and save to your computer try this.

Open the ms document (.doc file)

Go to file (Or in key board type Alt + F)

in menu there will be an option for saving file, Save As the file in another location.

save As as web page. you can see there in an option for saving the file as webpage in the drop down box

give the extension type to fileName.htm to new file

your file will be now saved as html file , There will separate folder for resources there you can find your images....

Author : +Shimjith

November 20, 2012

Find Missing number in sequence

Find the Missing sequence number from Array

Description : Find the missing number in sequence while user try to insert n number randomly into n -1 array. The complexity will be minimum

import java.util.Scanner;

 * @author +Jeevanantham R
public class MissingNumber {
    int inputArray[] = null;
    int limit = 0;
    private Scanner scanner = null;
    private void getInput() {
        scanner = new Scanner(;
        System.out.println(" Enter total number of elements ");
        limit = scanner.nextInt();
        int arraySize = limit-1;
        System.out.println(" Array  size  :"+arraySize );
        inputArray = new int[arraySize];
        for(int i=0; i<arraySize; i++){
            inputArray[i]= scanner.nextInt();
    private void findingMissedOne() {
        long startTime = System.currentTimeMillis();
        int actualValue = (limit * (limit + 1))/2;
        int arrayValue = 0;
        for(int i : inputArray){
            arrayValue = arrayValue + i;
        System.out.println(" Missing value (from the randomly inserted array) : "+(actualValue - arrayValue));
        System.out.println(" Execution time :"+(System.currentTimeMillis()- startTime)+" ms");
    private void showArray() {
        System.out.print(" Array members  : ");
        for (int i: inputArray) {
    public static void main(String[] args) {
        MissingNumber missingNumber = new MissingNumber();

Finding the missing number in a sequence
How to find missing number in sequence
My friend had suggested another way to find the missing number in sequence which is much better than the above code. try it and please provide +Akshay Agarwal  a feedback

Find missing number in an unordered sequential array

Akshay Agrawal

class MissingNumber
public static void main(String args[])throws IOException
BufferedReader b=new BufferedReader(new InputStreamReader(;
System.out.println("Enter the array size:");
int n=Integer.parseInt(b.readLine());

int a[]=new int[n];
System.out.println("Enter "+(n-1)+" array elements:");

int sum=0;
for(int i=0;i

int s=n*(n+1)/2;

int missing_number=s-sum;

long startTime = System.currentTimeMillis();
System.out.println("missing number in the from randomly inserted sequence="+missing_number);
System.out.println(" Execution time :"+(System.currentTimeMillis()- startTime)+" ms");


Thank you akshay agarwal for the above java code

Your Valuable FeedBacks Please

November 03, 2012

Exceptions in java

Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in ServletContext resource [/WEB-INF/landview-mail.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'mailSender' of bean class [com.mapview.landview.service.impl.MailServiceImpl]: Bean property 'mailSender' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

solution : you have forget to create getter and setter method in java class for id specified in xml as bean.

Facebook comments