Commit 903402d1 authored by rtelang's avatar rtelang

UtilMethods.java

- Added isChar method to check first letter must be character.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203298 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fe66e1d0
......@@ -1324,5 +1324,37 @@ public class UtilMethods {
//***** Modified by Vishal on 23/06/2017.End
//.........Modified by Rohini T on [12/07/09] [Start].........
public boolean isChar(String inputStr,int start,int lengthStr ) throws ITMException
{
boolean result = false;
int resultStr = 0;
String firstChar = "";
String inputStrChar = "";
try
{
inputStrChar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
firstChar = mid(inputStr, start, lengthStr);
System.out.println("firstChar::::::["+firstChar+"]");
resultStr = pos(inputStrChar, firstChar);
System.out.println("resultStr::::["+resultStr+"]");
if(resultStr > 0)
{
result = true;
}
else
{
result = false;
}
}
catch(Exception e)
{
throw new ITMException(e);
}
System.out.println("result::::["+result+"]");
return result;
}
//.........Modified by Rohini T on [12/07/09] [End].........
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment