How to check if string can be used to create a palindrome

This is a code to check if we can make a palindrome using all letters of string

Input: str is a given string.

NOTE: assumption every character have to be use present in the string, and only once.

Logic: only one alphabet can have odd occurence,rest should have even occurence.

 

ALGO:

 

public static void main(String asd[]){

 

int count= 0;

int odd_occurence = 0;

//str is given string.you can initialize str with ant input you want.

String str =  “apapqqqqjjk”;

Boolean output = true;

for(int i =0;i<str.length();i++){

                for(int j=0;j 1)

                {

                                output = false;

                                break;

                }

}

 

if(output){

                system.out.println(“palindrome can be created”);

}else{

                system.out.println(“palindrome cannot be created”);

}

 

}

Delete temp file from IBM webspehere server peoplesoft

Go to Ps home
Go to webserver
Go to domain
There will be 3 folder wstemp,temp,translog

Go to wstemp

rm -rf ./*
Go to temp/(domain)Node/server1

rm -rf ./*

Go to tranlog/(domain-name)NodeCell/(domain nqme)Node/server1

rm -rf ./*

Posted from WordPress for Android

Increase JVM heap size in IBM webpshere application server

check admin port from file AboutThisProfile.txt

go to admin console from url. eg;

http://10.219.200.214:9072/ibm/console/

go to :Servers > Application servers > server1 > Java and Process Management > Process Definition > Java Virtual Machine

 

change value for :

Initial Heap Size

At least one-half the value of the maximum heap size

Maximum Heap Size

At least 1024 or a size consistent with available RAM on the machine where WebSphere Application Server is installed

Posted from WordPress for Android