MainMenu

Home Java Overview Maven Tutorials

Sunday 3 November 2024

Java Script Tutorial 3 Data Types in Java Scripts




Data Types in Java Script:

JavaScript, as a dynamically-typed language, provides several data types that help developers define the nature of variables and manipulate data within their programs. These data types include:

1. Primitive Data Types:


Number: Represents both integer and floating-point numbers.
String: Represents a sequence of characters, enclosed in single (' ') or double (" ") quotes.
Boolean: Represents a logical value of either true or false.
Null: Represents the intentional absence of any object value.
Undefined: Represents a variable that has been declared but not assigned any value.
Symbol: Represents unique and immutable values and is often used as object property keys.

Example :

let a = 10;
let b = 15.50;
console.log(a+b);
let str = "chandan";
let str2 = 'singh';
console.log(str + " " +str2);
let str3 = `str ${a*10}`;
console.log(str3);
let bo = true;
if(bo){
console.log("its true")
}




2. Composite Data Types/Non-primitive data type:


Object: Represents a collection of key-value pairs where keys are strings (or Symbols) and values can be of any data type, including functions, other objects, etc.

Array: A special type of object used to store a collection of elements. Arrays can contain any data type, and elements are accessed by their numeric indices. JavaScript also supports special data structures and object types like Map, Set, Date, RegExp, etc., each with its own unique characteristics and functionalities.The dynamic nature of JavaScript allows variables to adapt to different data types as needed during runtime, which gives developers flexibility but also requires careful consideration to avoid unexpected behaviors due to type coercion or implicit type conversions.

ex : let arrayName = [element1, element2, element3, ...];

Objects in Java Script

In JavaScript, objects are a fundamental data type that allows for the creation of collections of key-value pairs. Objects are used to store data in the form of properties and methods. They are versatile and can represent complex entities by grouping related data and functionalities together.

Objects in JavaScript are defined using curly braces {} and contain zero or more key-value pairs. Keys (also known as property names) are strings or Symbols, and values can be of any data type, including other objects, arrays, functions, etc.

Here's an example of creating an object in JavaScript:



Array in Java Script


In JavaScript, an array is a collection of elements, which can include numbers, strings, objects, other arrays, and more. Arrays are particularly useful for storing lists of items and are zero-indexed, meaning the first element has an index of 0.
Key Features of Arrays in JavaScript
Flexible Data Types: Arrays can hold any data type, including strings, numbers, objects, and even other arrays (making it possible to create multidimensional arrays).
Example :
let mixedArray = [42, "hello", true, { name: "Alice" }, [1, 2, 3]];

Dynamic Length: The length of an array can change dynamically. You can add or remove elements as needed.
Accessing Elements: Elements are accessed by their index, starting from 0
Example :
let fruits = ["apple", "banana", "cherry"];
console.log(fruits[1]); // Output: "banana"

Array Properties and Methods:
length: Returns the number of elements in the array.
Example :
console.log(fruits.length); // Output: 3

push(element): Adds one or more elements to the end of the array.
Example :
fruits.push("orange"); // ["apple", "banana", "cherry", "orange"]

pop(): Removes the last element from the array and returns it
Example :
let lastFruit = fruits.pop(); // "orange"

unshift(element): Adds one or more elements to the beginning of the array
Example :
fruits.unshift("kiwi"); // ["kiwi", "apple", "banana", "cherry"]

shift(): Removes the first element from the array and returns it.
Example :
let firstFruit = fruits.shift(); // "kiwi"

splice(start, deleteCount, ...items): Adds/removes elements from a specific position in the array.
Example :
fruits.splice(1, 1, "grape"); // Replaces "apple" with "grape"

slice(start, end): Returns a shallow copy of a portion of an array
Example :
let newFruits = fruits.slice(1, 3); // ["banana", "cherry"]

indexOf(element): Returns the index of the first occurrence of the specified element, or -1 if it does not exist.
Example :
console.log(fruits.indexOf("cherry")); // Output: 2

Java Script Tutorial 2 Variables in Java Script




Variables in JavaScript

1) Variable names are case sensitive means “way2testing” and “WAY2TESTING” are different.

2) Space is not allowed only letter, digit, underscore and $ is allowed in variable name.

3) Reserved words cannot be used as variable name like “log, break, case, catch etc”.

4) Variable name’s first character must be only a letter, underscore or $.

Note : In general variable name should be in camel case.

Variable name can be used with three keywords

var : Variable can be re-declared and updated. A global Scope variable.
let : Variable can’t be re-declared but can be updated. A block scope variable.
Const: Variable can’t be re-declared or updated. A block space variable.

Note : const variable generally defined in capital letter.





JavaScript Tutorials

Java Script Topics Java Script Topics
1.

Java Script Tutorial 1 Introduction

2.

Java Script Tutorial 2 Variables in JavaScript

3.

Java Script Tutorial 3 Data Types, Object, Array in Java Script

4.

Java Script Tutorial 4

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

Java Script Tutorial 1 -- Introduction of java script, Syntax of Java Script




JavaScript Introduction 1:

JavaScript is a high-level, versatile programming language primarily used to create interactive effects within web browsers. Developed by Netscape, it was initially named LiveScript before being renamed JavaScript.

Key aspects of JavaScript include:

Client-Side Scripting: JavaScript is primarily used for client-side web development, allowing developers to create dynamic content that interacts with users, modifies the content of web pages, and responds to events triggered by users' actions (like clicks, form submissions, etc.).

Object-Based Language: JavaScript is object-based, meaning it uses objects and their properties to build scripts and functionalities. Objects in JavaScript can be predefined (like Date, Math, etc.) or custom-defined by developers.

Versatility: Originally created for web browsers, JavaScript has expanded its scope and can now be used for server-side development (Node.js), mobile app development (React Native, NativeScript), game development (using frameworks like Phaser, Three.js), and more.

Syntax: The syntax of JavaScript is similar to other programming languages like Java and C, making it relatively easy to learn for those familiar with programming concepts.

Interactivity and Dynamic Content: JavaScript allows for the creation of interactive elements on web pages, such as form validation, animations, dynamic updates without reloading the page (AJAX), and more.

Libraries and Frameworks:There are numerous libraries and frameworks built on top of JavaScript (e.g., jQuery, React.js, Angular.js, Vue.js) that simplify and streamline the development process, providing reusable components and enhancing the functionality of JavaScript.

Cross-Browser Compatibility: JavaScript is supported by all major web browsers like Chrome, Firefox, Safari, and Edge, ensuring cross-browser compatibility for web applications.

JavaScript plays a crucial role in modern web development, allowing developers to create rich, interactive, and user-friendly web experiences. Its versatility and widespread adoption have made it an integral part of web development ecosystems.




JavaScript Syntax :


0. Use the curly braces ({}) to create a block that groups one or more simple statements.

1.Javascript ignore the white spaces

2.In javascript (“;” ) used to end a statement and it is optional

3.Single line comment like “//”

4. Multiple line comment should be like “/* …… */”

For Example :

console.log("chandan");
let a = 10;
let b = 20;
//console.log(a+b);
console.log(a+b+30);
/*console.log("comment me)
console.log("comment me")
console.log("comment me")*/



Saturday 12 October 2024

Generics in Java with Example




Hello Friends,

Generics , This concept, introduced in JDK 5.0

Generics in Java are a powerful feature that allows you to define classes, interfaces, and methods with type parameters. This means that you can write flexible and reusable code while maintaining type safety, as it helps prevent runtime type casting errors by catching them at compile time.


Advantages of Generics:

Type Safety: Compile-time type checks prevent runtime ClassCastException.
Code Reusability: You can write a generic class or method once and use it for different data types.
Elimination of Casts: When retrieving elements from a generic collection, there's no need to cast the result.




Generic Class Example:




import java.util.*;

class A<T>{
private T item;
public A(T item){
this.item=item;
}
public void set(T item){
this.item = item;
}
public T get(){
return item;
}
}

public class GenericDemo {
public static void main(String[] args){
ArrayList list = new ArrayList();
list.add(24);
// list.add("www.way2testing.com");
// list.add(new HashSet());
int x = list.get(0);
System.out.println(x);
A obj = new A("csc");
// obj.set("way2testing");
System.out.println(obj.get());
}
}

Output:


Generic Methods:

In Java, generic methods are methods that are written with a parameterized type, enabling them to operate on objects of various types while still being type-safe. The key feature of generics is that they allow you to write a method or class that can handle any data type, without sacrificing compile-time type checking.

Advantages of Generic Methods:

Type Safety: You get compile-time type checking and avoid ClassCastException. Code Reusability: A single generic method can be used for different data types, avoiding duplication.

Generic Methods Example:



public class GenericMethod {
public static <T> void gtest(T[] arr){
for(T a:arr){
System.out.println(a);
}
System.out.println("Generic Methods");
}

public static void main(String[] args){
Integer[] ia = {1,2,3,4,5};
gtest(ia);
String[] sa = {"csc", "way2testing", "datastop", "dbshop"};
gtest(sa);
}
}







Generic Interface:


In Java, a generic interface is an interface that can work with any type of data using type parameters. This allows the interface to be type-safe and reusable for different types, similar to generic classes and methods.



Generic Interface Example:



interface genricEngine<T>{
void set(T item);
T get();
}
class car implements genricEngine<String>{
private String accessories;
public void set(String accessories){
this.accessories = accessories;
}
@Override
public String get() {
return accessories;
}
}
class suv implements genricEngine<Integer>{
private Integer gear;
public void set(Integer gear){
this.gear = gear;
}
@Override
public Integer get() {
return gear;
}
}
public class InterfaceGeneric {
public static void main(String[] args){
car a = new car();
a.set("nitrogen");
System.out.println(a.get());
suv b = new suv();
b.set(5);
System.out.println(b.get());
}
}






Friday 11 October 2024

Comparable and Comparator Interface in Java




Hello Friends,

In java, when we want to sort a collection, we use Class “Collections” and static method “sort()”
For example : List list = new ArraysList();
Collections.sort(list);
Now all the elements of the list will be sorted as per alphabetic order or numeric order.
But what if a list has objects then list items will be compared and which one will go first in list??
So , to sort the objects, we need to specify a rule based on that object should be sorted.
The “Comparator” and “Comparable” interface allow us to specify what rule is used to sort the objects.

FeatureComparableComparator
Interfacejava.lang.Comparablejava.util.Comparator
MethodcompareTo(T o)compare(T o1, T o2)
Natural OrderDefines natural ordering within the classDefines custom ordering outside the class
Single/MultipleCan only have one natural orderCan define multiple comparison methods
UsageUsed when you have one "natural" way to compareUsed for custom sorting logic or multiple comparisons


1. Comparable Interface

Purpose: Used to define a natural ordering of objects.
Method: Requires implementation of the method compareTo(Object o).
Usage: A class implements Comparable when its objects are supposed to be ordered in a natural way (e.g., alphabetical for strings, numerical for numbers).
Modification: This affects the class itself, meaning the comparison logic is part of the class definition.



2. Comparator Interface

Purpose: Used to define a custom or multiple orderings for objects.
Method: Requires implementation of the method compare(Object o1, Object o2).
Usage: Comparator is typically used when you want to define multiple ways of comparing objects or when you want to compare objects of a class that you do not control (e.g., a library class).
Modification: The comparison logic is external to the class being compared.

Comparable with example :




public class Vehicle implements Comparable<Vehicle>{
private int vehiclenumber;
private String vehiclename;
private int vehicleyear;
public Vehicle(int vehiclenumber, String vehiclename, int vehicleyear){
this.vehiclenumber = vehiclenumber;
this.vehiclename = vehiclename;
this.vehicleyear = vehicleyear;
}
public String toString(){
return "vehicle{"+
"vehiclenumber='" + vehiclenumber+ '\''+
", vehiclename='" + vehiclename+ '\''+
", vehicleyear=" + vehicleyear+
'}';
}

@Override
public int compareTo(@NotNull Vehicle o) {
return this.vehiclenumber - o.vehiclenumber;
}
}

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class comparatordemoa {
public static void main(String[] args){
List list = new ArrayList();
list.add(10);
list.add(20);
list.add(9);
list.add(15);
System.out.println(list);
Collections.sort(list);
System.out.println(list);
List list2 = new ArrayList();
list2.add(new vehical(2345, "ford", 2024));
list2.add(new vehical(3456, "kia", 2023));
list2.add(new vehical(5678, "suzuki", 2025));
System.out.println(list2);
Collections.sort(list2);
System.out.println(list2);
}
}

Comparator with example :

public class Vehicle2 {
public int getVehiclenumber() {
return vehiclenumber;
}
public void setVehiclenumber(int vehiclenumber) {
this.vehiclenumber = vehiclenumber;
}
public String getVehiclename() {
return vehiclename;
}
public void setVehiclename(String vehiclename) {
this.vehiclename = vehiclename;
}
public int getVehicleyear() {
return vehicleyear;
}

public void setVehicleyear(int vehicleyear) {
this.vehicleyear = vehicleyear;
}

private int vehiclenumber;
private String vehiclename;
private int vehicleyear;

public Vehicle2(int vehiclenumber, String vehiclename, int vehicleyear){
this.vehiclenumber = vehiclenumber;
this.vehiclename = vehiclename;
this.vehicleyear = vehicleyear;
}

public String toString(){
return "vehicle{"+
"vehiclenumber='" + vehiclenumber+ '\''+
", vehiclename='" + vehiclename+ '\''+
", vehicleyear=" + vehicleyear+
'}';
}
}

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class ComparableDemo {
public static void main(String[] args){
List list = new ArrayList();
list.add("Amit");
list.add("Baji");
list.add("Nishant");
list.add("Diraaj");
list.add("Chandan");
System.out.println(list);
Collections.sort(list);
System.out.println(list);
List list1 = new ArrayList();
list1.add(new Vehicle(10,"ford", 2022));
list1.add(new Vehicle(15,"Hundai", 2023));
list1.add(new Vehicle(5,"Honda", 2026));
System.out.println(list1);
Collections.sort(list1);
System.out.println(list1);
List list2 = new ArrayList();
list2.add(new Vehicle2(10,"City", 2022));
list2.add(new Vehicle2(15,"Baleno", 2023));
list2.add(new Vehicle2(5,"Accent", 2026));
System.out.println(list2);
Collections.sort(list2, new CompratorDemo());
System.out.println(list2);
}
}

public class CompratorDemo implements Comparator<Vehicle2> {

@Override
public int compare(Vehicle2 o1, Vehicle2 o2) {
return o1.getVehiclename().compareTo(o2.getVehiclename());
}
}

Example :


Tags:

Example of Comparable interface in java

Example of Comparator interface in java

Comparable vs comparator in java

Adavntage of Comparator over Comparable interface in java

Sunday 28 April 2024

Selenium Integration with AutoIT

Hello Friends,

In this article we will learn about open source tool AutoIT which is used to automate window bases application.
1). Download and install AutoIT
2). Different Components in AutoIT
3). Basic commonds in AutoIT
4). Reading window based popup properties using AutoIT
5). Seenium Integration with AutoIT
6). html script for choose me file






Download and install AutoIT in window based PC
open the google.com and type Download AutoIT
click on link https://www.autoitscript.com/site/autoit/downloads/
now go to download section as below


zip file will be downloaded, please unzip it and click on application (.exe) file and install as simple software installation



Accept the Licence Agreement


Select as per your operating system


Select edit the script option so that we can edit the script


Keep it as a default setting and click on next


Select the destination folder


Install the software


click the finish button


w indo click on window start button and see the AutoIT and its components are installed as below


Three Main AutoIT components are


1). SciTE Script Editor
like as other editor ike eclipse, Intellij Idea, this is editor for AutoIT commonds



2). AutoIT Window Info
By this we can get the info like "Title", "body", "Id" etc of target window, which we can use in our script
once scripting completed we will save the file with extention .au3



3). Run Script
Now by this runner we will open our saved file and run them



Basic Commonds in AutoIT

All The commonds are very easy and avaiable at autoit website https://www.autoitscript.com/autoit3/docs/functions.htm
But here is few important commonds which we mostly use in our selenium Automation
1)Run : Runs an external Program
Syntax :

Run("program", "workingdir"(optional), "show_flag"(optional), "opt_flag"(Optional))



For example : Open a notpage

Run(notepad.exe)

For Example: Open a notepad with window maximized
Run("notepad.exe", "", @SW_SHOWMAXIMIZED)

2)WinWait : Pauses execution of the script until the requested window exists.
Syntax :

WinWait("title", "text"(Optional), "timeout"(optional))


For Example : Open a notepad and wait for 5 seconds

Run("notepad.exe")
WinWait("[CLASS:Notepad]", "", 5)

3)WinWaitActive : Pauses execution of the script until the requested window is active.
Syntax :

WinWaitActive("title", "text"(Optional), "timeout"(optional))


For Example : Open a notepad and wait for 5 seconds
Run("notepad.exe")
WinWaitActive("[CLASS:Notepad]", "", 5)

Tips : The window is polled every 250 milliseconds or so.

4) Sleep : Pause script execution
Syntax :

Sleep(Amount of time to pause(in millisecond))


Example : Sleep(3000)

5) Send : Sends simulated keystrokes to the active window.
Syntax :

Send ("keys", flag(optional))


Example 1:
press window + r
type notepad.exe and press Enter key

Send("#r")
Send("notepad.exe{ENTER}")

Example 2:
Send raw text
Send("welcome at www.way2testing.com")
Example 3 :
Press Enter
Send("{ENTER}")
Example 4:
Press Escape key
Send{ESCAPE} or Send{ESC}

6) WinClose : Closes a window
Syntax:

WinClose("title", "text"(Optional))


or Example :
Open a Notepad
Enter some text and close it
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("welcome at www.way2testing.com")
WinClose("*Untitled - Notepad")

7) ControlFocus : Sets input focus to a given control on a window.
Syntax :

ControlFocus("title", "text(text of window to access)", controlID)



8) ControlSetText : Sets text of a control.
Syntax :

ControlSetText("title", "text(text of window to access)", controlID, "new Text( The new text to be set into the control)", flag(optional))



9)ControlClick : Sends a mouse click command to a given control.
Syntax :

ControlClick("title", "text(text of window to access)", controlID, button(optional), clicks(optional), x(optional) , y(optional))




AutoIT Window Infoby this tool we will read the attributes of popup window
first read the edit text part of the window



now read the button attribute


Now AutoIT script will be like this




Now right click on saved .au3 file and choose option "compile script(64bit)"



Now Integrate this AutoIT script to our selenium script

Runtime.getRuntime().exec("complete path of above compiled file upto exe");



Scenarios : Suppose we have scenario that we need to
1) : Open the browser
2) : Open the www.way2testing.com practice page
3): click the button "Choose File" , window based popup will open
4) : now enter the complete path of file in input box of popup
5) : click on Open button


import java.io.IOException;
import java.time.Duration;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

public class Capturepopup {
WebDriver driver;
@BeforeTest
public void launch() throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "./Driver\\chromedriver.exe");
System.setProperty(ChromeDriverService.CHROME_DRIVER_SILENT_OUTPUT_PROPERTY, "true");
System.setProperty("webdriver.chrome.silentOutput", "true");
ChromeOptions options = new ChromeOptions();
// options.addExtensions(new File("/path/to/extension.crx"));
options.addArguments("--incognito");
options.addArguments("incognito");
options.addArguments("--remote-allow-origins=*");
// WebDriverManager.chromedriver().setup();
driver = new ChromeDriver(options);
// driver = new ChromeDriver();
driver.manage().window().maximize();
Thread.sleep(2000);
}

@Test
public void TestAutoIt() throws InterruptedException, IOException {
driver.navigate().to("https://www.way2testing.com/p/this-webpage-is-designed-for-selenium.html");
Thread.sleep(2000);
WebElement element = driver.findElement(By.xpath("//input[@type = 'file']"));
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("arguments[0].scrollIntoView();", element);
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
wait.until(ExpectedConditions.elementToBeClickable(element));
Actions act = new Actions(driver);
act.moveToElement(element).click().build().perform();
Thread.sleep(2000);
Runtime.getRuntime().exec("D:\\Software\\AutoIt\\Programs\\way2testingWindowPopup.exe");
}
}



Below is html script for demo of AUTOIT



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Choose File Example </head>
<body>


<h2 style = "color:blue">Welcome at www.way2testing.com</h2>
<h2>Choose File Example</h2>
<!-- Button to trigger file input -->
<button onclick="chooseFile()">Choose File</button>
<!-- Hidden file input -->
<input type="file" id="fileInput" style="display: none;">
<script>
// Function to trigger file input when button is clicked
function chooseFile() {
document.getElementById('fileInput').click();
}
// Function to handle file selection
document.getElementById('fileInput').addEventListener('change', function() {
var file = this.files[0];
if (file) {
console.log('Selected file:', file);
// You can perform further operations with the selected file here
} else {
console.log('No file selected');
}
}); </script>
</body>
</html>

#AutoIT Tutorials

# AutoIT integration with selenium

#AutoIT Commonds

Monday 18 March 2024

RestAssured API Testing Interview Questions

Most Popular Rest Assured Interview Questions



1)Difference between Path and Query Parameters with an example

2)How to send a GET request using Rest Assured?

3)How to log response in Rest Assured only in the case of an error.

4)Explain different ways of extracting a single field from a response body.[like using response, JSONPath,XMLPath] and also they will give you the response of a request and ask you to extract the response of a particular field.

5)How to mask header information in API testing using Rest Assured?

6)How to download a file using rest assured?

7)How do you handle form parameters and multipart parameters[uploading media file]?

8)They will give you an end to end scenario and ask how will you write the rest assured code for that [ they are trying to understand how well can you do the API chaining here , you can just explain also]

9)What import statement will you use for Rest Assured to work?

10)How to check that a specific item is present in a collection using Rest Assured?[we can use Matchers here]

11)What are the common exceptions you encounter in Rest Assured?

12)Explain the rest Assured framework you wrote in your previous org?

13)How do you handle data in Rest Assured? [POJO, Excel,config file,HashMaps]

14)What is the use of ResponseSpecification in Rest Assured?

15)How do you handle authentication and authorization in Rest Assured tests?[basic, oauth,digest,custom]

16)What are the common pitfalls or challenges you have faced while using Rest Assured, and how did you overcome them?

17)What is the difference between given(), when(), and then() methods in Rest Assured and explain with an example.

18)How do you handle cookies in Rest Assured tests?

19)How can you handle timeouts and retries in Rest Assured tests?

20)Reporting in Rest Assured.

21)How do you enable parallel execution of Rest Assured tests? [TestNG,XML]

22)How do you verify the status code of an HTTP response using Rest Assured?

23)How do you handle dynamic status codes or scenarios where the status code may change between test runs?

24)How can you handle dynamic data or parameters in Rest Assured requests?

#RestAssured Interview Question


#Freaquently Asked Rest Assured Interview Question


Friday 8 March 2024

Cucumber Tutorial with TestNG

Hello Friends,
In this article , we will work with Selenium BDD (Behaviour driven development) using Cucumber.
Here we will run our test with TestNG




Now Create a Maven Project


Now configure the POM.xml file == >Add Cucumber, TestNG dependency , ==>> add plugins


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>way2testingCucumber</groupId>
<artifactId>way2testingCucumber</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>way2testingCucumber</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cucumber.version>7.14.1</cucumber.version>
<surefire.version>3.2.2</surefire.version>
<maven.complier.version>3.11.0</maven.complier.version>
</properties>

<dependencies>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumber.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>${cucumber.version}</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-core -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-core</artifactId>
<version>${cucumber.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-testng -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${cucumber.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.8.0</version>
<scope>test</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.complier.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version></plugin>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration> </plugins></pluginManagement>

</build>
</project>



Create a Resource folder and feature file inside it




Create a package "StepDefinition" and created a class and write all steps definitions


Create a runner package and a runner class and add Cucumber Options

package Runner;
import io.cucumber.testng.AbstractTestNGCucumberTests;
import io.cucumber.testng.CucumberOptions;
//@RunWith(Cucumber.class)
@CucumberOptions(features = "D:\\Software\\Selenium\\01_Cucumber_Framework_2024\\WorkSpace\\way2testingCucumber\\Resource",
glue = {"Step_definitions"},
plugin = {"pretty", "html:target/cucumber-reports.html", "json:target/report.json"},
tags="@Regression",
monochrome =true )
public class TestRunner extends AbstractTestNGCucumberTests{
}

}





Now create TestNG.xml file



<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Suite">
<test thread-count="5" name="Test">
<classes>
<class name = "Runner.TestRunner"/>
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->

Now run the cucumber test either via TestNG or by Maven



SetUp Cucumber Maven TestNG from scratch


Create project with Cucumber Maven TestNG from scratch




Saturday 2 March 2024

Get India State Name By City Name

Get State Name by City name Get State Name by City Name in India

This article is having a method which will give you state name as per city name.
This lengthy function don't need to write again , just copy below code and use it as per your need.

import java.util.HashMap;
import java.util.Map;


public class CountryCityState {

public static Object getState(String city) {

if(city!=null || !city.isBlank() || !city.isEmpty()) {
Map cs = new HashMap();
cs.put("Dispur", "Assam");
cs.put("Itanagar", "Arunachal Pradesh");
cs.put("Gandhinagar", "Gujarat");
cs.put("Visakhapatnam","Andhra Pradesh");
cs.put("Vijayawada","Andhra Pradesh");
cs.put("Guntur","Andhra Pradesh");
cs.put("Nellore","Andhra Pradesh");
cs.put("Kurnool","Andhra Pradesh");
cs.put("Kadapa","Andhra Pradesh");
cs.put("Rajahmundry","Andhra Pradesh");
cs.put("Kakinada","Andhra Pradesh");
cs.put("Tirupati","Andhra Pradesh");
cs.put("Eluru","Andhra Pradesh");
cs.put("Papum Pare","Arunachal Pradesh");
cs.put("Changlang","Arunachal Pradesh");
cs.put("Lohit","Arunachal Pradesh");
cs.put("West Siang","Arunachal Pradesh");
cs.put("Tirap","Arunachal Pradesh");
cs.put("East Siang","Arunachal Pradesh"); cs.put("Lower Subansiri","Arunachal Pradesh");
cs.put("Lower Dibang Valley","Arunachal Pradesh");
cs.put("West Kameng","Arunachal Pradesh");
cs.put("Dibang Valley","Arunachal Pradesh");
cs.put("Upper Subansiri","Arunachal Pradesh");
cs.put("East Kameng","Arunachal Pradesh");
cs.put("Upper Siang","Arunachal Pradesh");
cs.put("Tawang","Arunachal Pradesh");
cs.put("Anjaw","Arunachal Pradesh");
cs.put("Dhubri","Assam");
cs.put("Morigaon","Assam");
cs.put("Goalpara","Assam");
cs.put("Darrangh","Assam");
cs.put("Nagaon","Assam");
cs.put("Karimganj","Assam");
cs.put("Halkndi","Assam");
cs.put("Barpeta","Assam");
cs.put("Bongaigaon","Assam");
cs.put("Cachar","Assam");
cs.put("Dhemaji","Assam");
cs.put("Patna","Bihar");
cs.put("Gaya","Bihar");
cs.put("Muzaffarpur","Bihar");
cs.put("Purnia","Bihar");
cs.put("Begusarai","Bihar");
cs.put("Bhagalpur","Bihar");
cs.put("Bihar Sharif","Bihar");
cs.put("Darbhanga","Bihar");
cs.put("Arrah","Bihar");
cs.put("Katihar","Bihar");
cs.put("Munger","Bihar");
cs.put("Chhapra","Bihar");
cs.put("Mehsi","Bihar");
cs.put("Danapur","Bihar");
cs.put("Bettiah","Bihar");
cs.put("Saharsa","Bihar");
cs.put("Hajipur","Bihar");
cs.put("Sasaram","Bihar");
cs.put("Dehri","Bihar");
cs.put("Siwan","Bihar");
cs.put("Motihari","Bihar");
cs.put("Nawada","Bihar");
cs.put("Bagaha","Bihar");
cs.put("Buxar","Bihar");
cs.put("Kishanganj","Bihar");
cs.put("Sitamarhi","Bihar");
cs.put("Jamalpur","Bihar");
cs.put("Jehanabad","Bihar");
cs.put("Aurangabad","Bihar");
cs.put("Bastar","Chhattisgarh");
cs.put("Bijapur","Chhattisgarh");
cs.put("Bilaspur","Chhattisgarh");
cs.put("Dantewada","Chhattisgarh");
cs.put("Dhamtari","Chhattisgarh");
cs.put("Janjgir Champa","Chhattisgarh");
cs.put("Jashpur","Chhattisgarh");
cs.put("Kabirdham","Chhattisgarh");
cs.put("Kanker","Chhattisgarh");
cs.put("Korba","Chhattisgarh");
cs.put("Korea","Chhattisgarh");
cs.put("Mahasamund","Chhattisgarh");
cs.put("Narayanpur","Chhattisgarh");
cs.put("Raigarh","Chhattisgarh");
cs.put("Raipur","Chhattisgarh");
cs.put("Rajnandgaon","Chhattisgarh");
cs.put("Surguja","Chhattisgarh");
cs.put("Panaji","Goa");
cs.put("Ahmedabad","Gujarat");
cs.put("Surat","Gujarat");
cs.put("Vadodara (Baroda)","Gujarat");
cs.put("Bhavnagar (Bhaunagar)","Gujarat");
cs.put("Rajkot","Gujarat");
cs.put("Jamnagar","Gujarat");
cs.put("Nadiad","Gujarat");
cs.put("Junagadh","Gujarat");
cs.put("Navsari","Gujarat");
cs.put("Morvi","Gujarat");
cs.put("Gandhidham","Gujarat");
cs.put("Bharuch (Broach)","Gujarat");
cs.put("Anand","Gujarat");
cs.put("Porbandar","Gujarat");
cs.put("Mahesana","Gujarat");
cs.put("Bhuj","Gujarat");
cs.put("Veraval","Gujarat");
cs.put("Surendranagar","Gujarat");
cs.put("Valsad (Bulsar)","Gujarat");
cs.put("Vapi (Wapi)","Gujarat");
cs.put("Godhra","Gujarat");
cs.put("Palanpur","Gujarat");
cs.put("Anklesvar","Gujarat");
cs.put("Patan","Gujarat");
cs.put("Dahod [Dohad]","Gujarat");
cs.put("Gurgaon","Haryana");
cs.put("Panchkula","Haryana");
cs.put("Ambala","Haryana");
cs.put("Faridabad","Haryana");
cs.put("Rewari","Haryana");
cs.put("Jhajjar","Haryana");
cs.put("Rohtak","Haryana");
cs.put("Chandigarh","Haryana");
cs.put("Panipat","Haryana");
cs.put("Shimla","Himachal Pradesh");
cs.put("Solan","Himachal Pradesh");
cs.put("Dharmsala (Dharamsala)","Himachal Pradesh");
cs.put("Baddi","Himachal Pradesh");
cs.put("Nahan","Himachal Pradesh");
cs.put("Mandi","Himachal Pradesh");
cs.put("Paonta Sahib","Himachal Pradesh");
cs.put("Sundarnagar","Himachal Pradesh");
cs.put("Chamba","Himachal Pradesh");
cs.put("Kullu","Himachal Pradesh");
cs.put("Ranchi","Jharkhand");
cs.put("Dhanbad","Jharkhand");
cs.put("Giridih","Jharkhand");
cs.put("East Singhbhum","Jharkhand");
cs.put("Bokaro","Jharkhand");
cs.put("Bangalore","Karnataka");
cs.put("Hubli-Dharwad","Karnataka"); cs.put("Mysore","Karnataka");
cs.put("Kalaburagi","Karnataka");
cs.put("Mangalore","Karnataka");
cs.put("Belgaum","Karnataka");
cs.put("Davanagere","Karnataka");
cs.put("Bellary","Karnataka");
cs.put("Vijayapura","Karnataka");
cs.put("Shimoga","Karnataka");
cs.put("Tumkur","Karnataka");
cs.put("Raichur","Karnataka");
cs.put("Bidar","Karnataka");
cs.put("Udupi","Karnataka");
cs.put("Hospet","Karnataka");
cs.put("Gadag-Betageri","Karnataka");
cs.put("Robertsonpet","Karnataka");
cs.put("Hassan","Karnataka");
cs.put("Bhadravati","Karnataka");
cs.put("Chitradurga","Karnataka");
cs.put("Kolar","Karnataka");
cs.put("Mandya","Karnataka");
cs.put("Chikmagalur","Karnataka");
cs.put("Gangavati","Karnataka");
cs.put("Bagalkot","Karnataka");
cs.put("Ranebennuru","Karnataka");
cs.put("Kottayam","Kerala");
cs.put("Pathanamthitta","Kerala");
cs.put("Ernakulam","Kerala");
cs.put("Alappuzha","Kerala");
cs.put("Kannur","Kerala");
cs.put("Thrissur","Kerala");
cs.put("Kozhikode","Kerala");
cs.put("Thiruvananthapuram","Kerala");
cs.put("Indore","Madhya Pradesh");
cs.put("Bhopal [Bhopal]","Madhya Pradesh");
cs.put("Jabalpur","Madhya Pradesh");
cs.put("Gwalior","Madhya Pradesh");
cs.put("Ujjain","Madhya Pradesh");
cs.put("Sagar","Madhya Pradesh");
cs.put("Dewas","Madhya Pradesh");
cs.put("Satna","Madhya Pradesh");
cs.put("Ratlam","Madhya Pradesh");
cs.put("Rewa","Madhya Pradesh");
cs.put("Murwara","Madhya Pradesh");
cs.put("Singrauli","Madhya Pradesh");
cs.put("Burhanpur","Madhya Pradesh");
cs.put("Khandwa","Madhya Pradesh");
cs.put("Morena","Madhya Pradesh");
cs.put("Bhind","Madhya Pradesh");
cs.put("Chhindwara","Madhya Pradesh");
cs.put("Guna","Madhya Pradesh");
cs.put("Shivpuri","Madhya Pradesh");
cs.put("Vidisha","Madhya Pradesh");
cs.put("Damoh","Madhya Pradesh");
cs.put("Chhatarpur","Madhya Pradesh");
cs.put("Mandsaur","Madhya Pradesh");
cs.put("Khargone","Madhya Pradesh");
cs.put("Nimach (Neemuch)","Madhya Pradesh");
cs.put("Thane","Maharashtra");
cs.put("Pune","Maharashtra");
cs.put("Mumbai Suburban","Maharashtra");
cs.put("Nashik","Maharashtra");
cs.put("Nagpur","Maharashtra");
cs.put("Ahmednagar","Maharashtra");
cs.put("Solapur","Maharashtra");
cs.put("Jalgaon","Maharashtra");
cs.put("Imphal West","Manipur");
cs.put("Churachandpur","Manipur");
cs.put("Imphal East","Manipur");
cs.put("Ukhrul","Manipur");
cs.put("Baghmara","Meghalaya");
cs.put("Cherrapunjee (Cherrapunji)","Meghalaya");
cs.put("Jowai","Meghalaya");
cs.put("Lawsohtun","Meghalaya");
cs.put("Madanriting (Madanrting)","Meghalaya");
cs.put("Mairang","Meghalaya");
cs.put("Mawlai","Meghalaya");
cs.put("Mawpat","Meghalaya");
cs.put("Nongkseh","Meghalaya");
cs.put("Nongmynsong","Meghalaya");
cs.put("Nongpoh","Meghalaya");
cs.put("Nongstoin","Meghalaya");
cs.put("Nongthymmai","Meghalaya");
cs.put("Pynthormukhrah (Pynthorumkhrah)","Meghalaya");
cs.put("Resubelpara","Meghalaya");
cs.put("Shillong","Meghalaya");
cs.put("Shillong Cantonment","Meghalaya");
cs.put("Tura","Meghalaya");
cs.put("Umlyngka","Meghalaya");
cs.put("Umpling","Meghalaya");
cs.put("Umroi","Meghalaya");
cs.put("Williamnagar","Meghalaya");
cs.put("Lunglei","Mizoram");
cs.put("Aizawl","Mizoram");
cs.put("Champhai","Mizoram");
cs.put("Mokokchung","Nagaland");
cs.put("Wokha","Nagaland");
cs.put("Zunheboto","Nagaland");
cs.put("Kohima","Nagaland");
cs.put("Dimapur","Nagaland");
cs.put("Bhubaneswar","Odisha");
cs.put("Cuttack","Odisha");
cs.put("Raurkela (Rourkela)","Odisha");
cs.put("Brahmapur (Berhampur)","Odisha");
cs.put("Sambalpur","Odisha");
cs.put("Puri","Odisha");
cs.put("Baleshwar (Balasore)","Odisha");
cs.put("Bhadrak","Odisha");
cs.put("Baripada","Odisha");
cs.put("Balangir","Odisha");
cs.put("Jharsuguda","Odisha");
cs.put("Jaypur","Odisha");
cs.put("Bargarh","Odisha");
cs.put("Brajarajnagar","Odisha");
cs.put("Rayagada","Odisha");
cs.put("Bhawanipatna","Odisha");
cs.put("Paradip","Odisha");
cs.put("Dhenkanal","Odisha");
cs.put("Barbil (Bada Barabil)","Odisha");
cs.put("Jatani","Odisha");
cs.put("Kendujhar (Kendujhargarh)","Odisha");
cs.put("Byasanagar","Odisha");
cs.put("Rajagangapur","Odisha");
cs.put("Sunabeda","Odisha");
cs.put("Koraput","Odisha");
cs.put("Ludhiana","Punjab");
cs.put("Amritsar","Punjab");
cs.put("Jalandhar","Punjab");
cs.put("Patiala","Punjab");
cs.put("Bathinda","Punjab");
cs.put("Hoshiarpur","Punjab");
cs.put("S.A.S. Nagar","Punjab");
cs.put("Moga","Punjab");
cs.put("Batala","Punjab");
cs.put("Pathankot","Punjab");
cs.put("Abohar","Punjab");
cs.put("Malerkotla","Punjab");
cs.put("Khanna","Punjab");
cs.put("Muktsar","Punjab");
cs.put("Barnala","Punjab");
cs.put("Firozpur","Punjab");
cs.put("Kapurthala","Punjab");
cs.put("Phagwara","Punjab");
cs.put("Zirakpur","Punjab");
cs.put("Rajpura","Punjab");
cs.put("Jaipur","Rajasthan");
cs.put("Jodhpur","Rajasthan");
cs.put("Kota","Rajasthan");
cs.put("Bhiwadi","Rajasthan");
cs.put("Bikaner","Rajasthan");
cs.put("Udaipur","Rajasthan");
cs.put("Ajmer","Rajasthan");
cs.put("Bhilwara","Rajasthan");
cs.put("Alwar","Rajasthan");
cs.put("Sikar","Rajasthan");
cs.put("Bharatpur","Rajasthan");
cs.put("Pali","Rajasthan");
cs.put("Sri Ganganagar","Rajasthan");
cs.put("Kishangarh","Rajasthan");
cs.put("Baran","Rajasthan");
cs.put("Dhaulpur","Rajasthan");
cs.put("Tonk","Rajasthan");
cs.put("Beawar","Rajasthan");
cs.put("Hanumangarh","Rajasthan");
cs.put("Banswara","Rajasthan");
cs.put("Dungarpur","Rajasthan");
cs.put("Pratapgarh","Rajasthan");
cs.put("Gangtok","Sikkim");
cs.put("Mangan","Sikkim");
cs.put("Namchi","Sikkim");
cs.put("Gyalshing or Geyzing","Sikkim");
cs.put("Pakyong","Sikkim");
cs.put("Soreng","Sikkim");
cs.put("Chennai ","Tamil Nadu");
cs.put("Coimbatore ","Tamil Nadu");
cs.put("Madurai ","Tamil Nadu");
cs.put("Salem ","Tamil Nadu");
cs.put("Tiruchirappalli ","Tamil Nadu");
cs.put("Thoothukudi ","Tamil Nadu");
cs.put("Tirunelveli ","Tamil Nadu");
cs.put("Tiruppur ","Tamil Nadu");
cs.put("Ambattur ","Tamil Nadu");
cs.put("Avadi ","Tamil Nadu");
cs.put("Tiruvottiyur ","Tamil Nadu");
cs.put("Thanjavur ","Tamil Nadu");
cs.put("Nagercoil ","Tamil Nadu");
cs.put("Dindigul ","Tamil Nadu");
cs.put("Vellore ","Tamil Nadu");
cs.put("Hyderabad","Telangana");
cs.put("Mahbubnagar","Telangana");
cs.put("Adilabad","Telangana");
cs.put("Khammam","Telangana");
cs.put("Nalgonda","Telangana");
cs.put("Warangal","Telangana");
cs.put("Karimnagar","Telangana");
cs.put("Agartala","Tripura");
cs.put("Dharmanagar","Tripura");
cs.put("Udaipur","Tripura");
cs.put("Kailasahar","Tripura");
cs.put("Bishalgarh","Tripura");
cs.put("Teliamura","Tripura");
cs.put("Khowai","Tripura");
cs.put("Belonia","Tripura");
cs.put("Melaghar","Tripura");
cs.put("Mohanpur","Tripura");
cs.put("Ambassa","Tripura");
cs.put("Ranirbazar","Tripura");
cs.put("Santirbazar","Tripura");
cs.put("Kumarghat","Tripura");
cs.put("Sonamura","Tripura");
cs.put("Panisagar","Tripura");
cs.put("Amarpur","Tripura");
cs.put("Jirania","Tripura");
cs.put("Kamalpur","Tripura");
cs.put("Sabroom","Tripura");
cs.put("Allahabad","Uttar Pradesh");
cs.put("Moradabad","Uttar Pradesh");
cs.put("Ghaziabad","Uttar Pradesh");
cs.put("Azamgarh","Uttar Pradesh");
cs.put("Lucknow","Uttar Pradesh");
cs.put("Kanpur","Uttar Pradesh");
cs.put("Jaunpur","Uttar Pradesh");
cs.put("Sitapur","Uttar Pradesh");
cs.put("Bareilly","Uttar Pradesh");
cs.put("Gorakhpur","Uttar Pradesh");
cs.put("Agra","Uttar Pradesh");
cs.put("Muzaffarnagar","Uttar Pradesh");
cs.put("Hardoi","Uttar Pradesh");
cs.put("Kheri","Uttar Pradesh");
cs.put("Dehradun","Uttarakhand");
cs.put("Haridwar","Uttarakhand");
cs.put("Roorkee","Uttarakhand");
cs.put("Haldwani-cum-Kathgodam","Uttarakhand");
cs.put("Rudrapur","Uttarakhand");
cs.put("Kashipur","Uttarakhand");
cs.put("Rishikesh","Uttarakhand");
cs.put("Durgapur","West Bengal");
cs.put("Bardhaman","West Bengal");
cs.put("Malda","West Bengal");
cs.put("Baharampur","West Bengal");
cs.put("Habra","West Bengal");
cs.put("Kharagpur","West Bengal");
cs.put("Santipur","West Bengal");
cs.put("Dankuni","West Bengal");
cs.put("Dhulian","West Bengal");
cs.put("Ranaghat","West Bengal");
cs.put("Haldia","West Bengal");
cs.put("Raiganj","West Bengal");
cs.put("Krishnanagar","West Bengal");
cs.put("Nabadwip","West Bengal");
cs.put("Medinipur","West Bengal");
cs.put("Jalpaiguri","West Bengal");
cs.put("Balurghat","West Bengal");
cs.put("Basirhat","West Bengal");
cs.put("Bankura","West Bengal");
cs.put("Chakdaha","West Bengal");
cs.put("Darjeeling","West Bengal");
cs.put("Alipurduar","West Bengal");
cs.put("Purulia","West Bengal");
cs.put("Jangipur","West Bengal");
cs.put("Bolpur","West Bengal");
cs.put("Bangaon","West Bengal");
cs.put("Cooch Behar","West Bengal");
cs.put("Mumbai","Maharashtra");
cs.put("Delhi","Delhi");
cs.put("Bengaluru","Karnataka");
cs.put("Ahmedabad","Gujarat");
cs.put("Hyderabad","Telangana");
cs.put("Chennai","Tamil Nadu");
cs.put("Kolkata","West Bengal");
cs.put("Pune","Maharashtra");
cs.put("Jaipur","Rajasthan");
cs.put("Surat","Gujarat");
cs.put("Lucknow","Uttar Pradesh");
cs.put("Kanpur","Uttar Pradesh");
cs.put("Nagpur","Maharashtra");
cs.put("Patna","Bihar");
cs.put("Indore","Madhya Pradesh");
cs.put("Thane","Maharashtra");
cs.put("Bhopal","Madhya Pradesh");
cs.put("Visakhapatnam","Andhra Pradesh");
cs.put("Vadodara","Gujarat");
cs.put("Firozabad","Uttar Pradesh");
cs.put("Ludhiana","Punjab");
cs.put("Rajkot","Gujarat");
cs.put("Agra","Uttar Pradesh");
cs.put("Siliguri","West Bengal");
cs.put("Nashik","Maharashtra");
cs.put("Faridabad","Haryana");
cs.put("Patiala","Punjab");
cs.put("Meerut","Uttar Pradesh");
cs.put("Kalyan-Dombivali","Maharashtra");
cs.put("Vasai-Virar","Maharashtra");
cs.put("Varanasi","Uttar Pradesh");
cs.put("Srinagar","Jammu and Kashmir");
cs.put("Dhanbad","Jharkhand");
cs.put("Jodhpur","Rajasthan");
cs.put("Amritsar","Punjab");
cs.put("Raipur","Chhattisgarh");
cs.put("Allahabad","Uttar Pradesh");
cs.put("Coimbatore","Tamil Nadu");
cs.put("Jabalpur","Madhya Pradesh");
cs.put("Gwalior","Madhya Pradesh");
cs.put("Vijayawada","Andhra Pradesh");
cs.put("Madurai","Tamil Nadu");
cs.put("Guwahati","Assam");
cs.put("Chandigarh","Chandigarh");
cs.put("Hubli-Dharwad","Karnataka");
cs.put("Amroha","Uttar Pradesh");
cs.put("Moradabad","Uttar Pradesh");
cs.put("Gurgaon","Haryana");
cs.put("Aligarh","Uttar Pradesh");
cs.put("Solapur","Maharashtra");
cs.put("Ranchi","Jharkhand");
cs.put("Jalandhar","Punjab");
cs.put("Tiruchirappalli","Tamil Nadu");
cs.put("Bhubaneswar","Odisha");
cs.put("Salem","Tamil Nadu");
cs.put("Warangal","Telangana");
cs.put("Mira-Bhayandar","Maharashtra");
cs.put("Thiruvananthapuram","Kerala");
cs.put("Bhiwandi","Maharashtra");
cs.put("Saharanpur","Uttar Pradesh");
cs.put("Guntur","Andhra Pradesh");
cs.put("Amravati","Maharashtra");
cs.put("Bikaner","Rajasthan");
cs.put("Noida","Uttar Pradesh");
cs.put("Jamshedpur","Jharkhand");
cs.put("Bhilai Nagar","Chhattisgarh");
cs.put("Cuttack","Odisha");
cs.put("Kochi","Kerala");
cs.put("Udaipur","Rajasthan");
cs.put("Bhavnagar","Gujarat");
cs.put("Dehradun","Uttarakhand");
cs.put("Asansol","West Bengal");
cs.put("Nanded-Waghala","Maharashtra");
cs.put("Ajmer","Rajasthan");
cs.put("Jamnagar","Gujarat");
cs.put("Ujjain","Madhya Pradesh");
cs.put("Sangli","Maharashtra");
cs.put("Loni","Uttar Pradesh");
cs.put("Jhansi","Uttar Pradesh");
cs.put("Pondicherry","Puducherry");
cs.put("Nellore","Andhra Pradesh");
cs.put("Jammu","Jammu and Kashmir");
cs.put("Belagavi","Karnataka");
cs.put("Raurkela","Odisha");
cs.put("Mangaluru","Karnataka");
cs.put("Tirunelveli","Tamil Nadu");
cs.put("Malegaon","Maharashtra");
cs.put("Gaya","Bihar");
cs.put("Tiruppur","Tamil Nadu");
cs.put("Davanagere","Karnataka");
cs.put("Kozhikode","Kerala");
cs.put("Akola","Maharashtra");
cs.put("Kurnool","Andhra Pradesh");
cs.put("Bokaro Steel City","Jharkhand");
cs.put("Rajahmundry","Andhra Pradesh");
cs.put("Ballari","Karnataka");
cs.put("Agartala","Tripura");
cs.put("Bhagalpur","Bihar");
cs.put("Latur","Maharashtra");
cs.put("Dhule","Maharashtra");
cs.put("Korba","Chhattisgarh");
cs.put("Bhilwara","Rajasthan");
cs.put("Brahmapur","Odisha");
cs.put("Mysore","Karnatka");
cs.put("Muzaffarpur","Bihar");
cs.put("Ahmednagar","Maharashtra");
cs.put("Kollam","Kerala");
cs.put("Raghunathganj","West Bengal");
cs.put("Bilaspur","Chhattisgarh");
cs.put("Shahjahanpur","Uttar Pradesh");
cs.put("Thrissur","Kerala");
cs.put("Alwar","Rajasthan");
cs.put("Kakinada","Andhra Pradesh");
cs.put("Nizamabad","Telangana");
cs.put("Sagar","Madhya Pradesh");
cs.put("Tumkur","Karnataka");
cs.put("Hisar","Haryana");
cs.put("Rohtak","Haryana");
cs.put("Panipat","Haryana");
cs.put("Darbhanga","Bihar");
cs.put("Kharagpur","West Bengal");
cs.put("Aizawl","Mizoram");
cs.put("Ichalkaranji","Maharashtra");
cs.put("Tirupati","Andhra Pradesh");
cs.put("Karnal","Haryana");
cs.put("Bathinda","Punjab");
cs.put("Rampur","Uttar Pradesh");
cs.put("Shivamogga","Karnataka");
cs.put("Ratlam","Madhya Pradesh");
cs.put("Modinagar","Uttar Pradesh");
cs.put("Durg","Chhattisgarh");
cs.put("Shillong","Meghalaya");
cs.put("Imphal","Manipur");
cs.put("Hapur","Uttar Pradesh");
cs.put("Ranipet","Tamil Nadu");
cs.put("Anantapur","Andhra Pradesh");
cs.put("Arrah","Bihar");
cs.put("Karimnagar","Telangana");
cs.put("Parbhani","Maharashtra");
cs.put("Etawah","Uttar Pradesh");
cs.put("Bharatpur","Rajasthan");
cs.put("Begusarai","Bihar");
cs.put("New Delhi","Delhi");
cs.put("Chhapra","Bihar");
cs.put("Kadapa","Andhra Pradesh");
cs.put("Ramagundam","Telangana");
cs.put("Pali","Rajasthan");
cs.put("Satna","Madhya Pradesh");
cs.put("Vizianagaram","Andhra Pradesh");
cs.put("Katihar","Bihar");
cs.put("Hardwar","Uttarakhand");
cs.put("Sonipat","Haryana");
cs.put("Nagercoil","Tamil Nadu");
cs.put("Thanjavur","Tamil Nadu");
cs.put("Murwara (Katni)","Madhya Pradesh");
cs.put("Naihati","West Bengal");
cs.put("Sambhal","Uttar Pradesh");
cs.put("Nadiad","Gujarat");
cs.put("Yamunanagar","Haryana");
cs.put("English Bazar","West Bengal");
cs.put("Eluru","Andhra Pradesh");
cs.put("Munger","Bihar");
cs.put("Panchkula","Haryana");
cs.put("Raayachuru","Karnataka");
cs.put("Panvel","Maharashtra");
cs.put("Deoghar","Jharkhand");
cs.put("Ongole","Andhra Pradesh");
cs.put("Nandyal","Andhra Pradesh");
cs.put("Morena","Madhya Pradesh");
cs.put("Bhiwani","Haryana");
cs.put("Porbandar","Gujarat");
cs.put("Palakkad","Kerala");
cs.put("Anand","Gujarat");
cs.put("Purnia","Bihar");
cs.put("Baharampur","West Bengal");
cs.put("Barmer","Rajasthan");
cs.put("Morvi","Gujarat");
cs.put("Orai","Uttar Pradesh");
cs.put("Bahraich","Uttar Pradesh");
cs.put("Sikar","Rajasthan");
cs.put("Vellore","Tamil Nadu");
cs.put("Singrauli","Madhya Pradesh");
cs.put("Khammam","Telangana");
cs.put("Mahesana","Gujarat");
cs.put("Silchar","Assam");
cs.put("Sambalpur","Odisha");
cs.put("Rewa","Madhya Pradesh");
cs.put("Unnao","Uttar Pradesh");
cs.put("Hugli-Chinsurah","West Bengal");
cs.put("Raiganj","West Bengal");
cs.put("Phusro","Jharkhand");
cs.put("Adityapur","Jharkhand");
cs.put("Alappuzha","Kerala");
cs.put("Bahadurgarh","Haryana");
cs.put("Machilipatnam","Andhra Pradesh");
cs.put("Rae Bareli","Uttar Pradesh");
cs.put("Jalpaiguri","West Bengal");
cs.put("Bharuch","Gujarat");
cs.put("Pathankot","Punjab");
cs.put("Hoshiarpur","Punjab");
cs.put("Baramula","Jammu and Kashmir");
cs.put("Adoni","Andhra Pradesh");
cs.put("Jind","Haryana");
cs.put("Tonk","Rajasthan");
cs.put("Tenali","Andhra Pradesh");
cs.put("Kancheepuram","Tamil Nadu");
cs.put("Vapi","Gujarat");
cs.put("Sirsa","Haryana");
cs.put("Navsari","Gujarat");
cs.put("Mahbubnagar","Telangana");
cs.put("Puri","Odisha");
cs.put("Robertson Pet","Karnataka");
cs.put("Erode","Tamil Nadu");
cs.put("Batala","Punjab");
cs.put("Haldwani-cum-Kathgodam","Uttarakhand");
cs.put("Vidisha","Madhya Pradesh");
cs.put("Saharsa","Bihar");
cs.put("Thanesar","Haryana");
cs.put("Chittoor","Andhra Pradesh");
cs.put("Veraval","Gujarat");
cs.put("Lakhimpur","Uttar Pradesh");
cs.put("Sitapur","Uttar Pradesh");
cs.put("Hindupur","Andhra Pradesh");
cs.put("Santipur","West Bengal");
cs.put("Balurghat","West Bengal");
cs.put("Ganjbasoda","Madhya Pradesh");
cs.put("Moga","Punjab");
cs.put("Proddatur","Andhra Pradesh");
cs.put("Srinagar","Uttarakhand");
cs.put("Medinipur","West Bengal");
cs.put("Habra","West Bengal");
cs.put("Sasaram","Bihar");
cs.put("Hajipur","Bihar");
cs.put("Bhuj","Gujarat");
cs.put("Shivpuri","Madhya Pradesh");
cs.put("Ranaghat","West Bengal");
cs.put("Shimla","Himachal Pradesh");
cs.put("Tiruvannamalai","Tamil Nadu");
cs.put("Kaithal","Haryana");
cs.put("Rajnandgaon","Chhattisgarh");
cs.put("Godhra","Gujarat");
cs.put("Hazaribag","Jharkhand");
cs.put("Bhimavaram","Andhra Pradesh");
cs.put("Mandsaur","Madhya Pradesh");
cs.put("Dibrugarh","Assam");
cs.put("Kolar","Karnataka");
cs.put("Bankura","West Bengal");
cs.put("Mandya","Karnataka");
cs.put("Dehri-on-Sone","Bihar");
cs.put("Madanapalle","Andhra Pradesh");
cs.put("Malerkotla","Punjab");
cs.put("Lalitpur","Uttar Pradesh");
cs.put("Bettiah","Bihar");
cs.put("Pollachi","Tamil Nadu");
cs.put("Khanna","Punjab");
cs.put("Neemuch","Madhya Pradesh");
cs.put("Palwal","Haryana");
cs.put("Palanpur","Gujarat");
cs.put("Guntakal","Andhra Pradesh");
cs.put("Nabadwip","West Bengal");
cs.put("Udupi","Karnataka");
cs.put("Jagdalpur","Chhattisgarh");
cs.put("Motihari","Bihar");
cs.put("Pilibhit","Uttar Pradesh");
cs.put("Dimapur","Nagaland");
cs.put("Mohali","Punjab");
cs.put("Sadulpur","Rajasthan");
cs.put("Rajapalayam","Tamil Nadu");
cs.put("Dharmavaram","Andhra Pradesh");
cs.put("Kashipur","Uttarakhand");
cs.put("Sivakasi","Tamil Nadu");
cs.put("Darjiling","West Bengal");
cs.put("Chikkamagaluru","Karnataka");
cs.put("Gudivada","Andhra Pradesh");
cs.put("Baleshwar Town","Odisha");
cs.put("Mancherial","Telangana");
cs.put("Srikakulam","Andhra Pradesh");
cs.put("Adilabad","Telangana");
cs.put("Yavatmal","Maharashtra");
cs.put("Barnala","Punjab");
cs.put("Nagaon","Assam");
cs.put("Narasaraopet","Andhra Pradesh");
cs.put("Raigarh","Chhattisgarh");
cs.put("Roorkee","Uttarakhand");
cs.put("Valsad","Gujarat");
cs.put("Ambikapur","Chhattisgarh");
cs.put("Giridih","Jharkhand");
cs.put("Chandausi","Uttar Pradesh");
cs.put("Purulia","West Bengal");
cs.put("Patan","Gujarat");
cs.put("Bagaha","Bihar");
cs.put("Hardoi ","Uttar Pradesh");
cs.put("Achalpur","Maharashtra");
cs.put("Osmanabad","Maharashtra");
cs.put("Deesa","Gujarat");
cs.put("Nandurbar","Maharashtra");
cs.put("Azamgarh","Uttar Pradesh");
cs.put("Ramgarh","Jharkhand");
cs.put("Firozpur","Punjab");
cs.put("Baripada Town","Odisha");
cs.put("Karwar","Karnataka");
cs.put("Siwan","Bihar");
cs.put("Rajampet","Andhra Pradesh");
cs.put("Pudukkottai","Tamil Nadu");
cs.put("Anantnag","Jammu and Kashmir");
cs.put("Tadpatri","Andhra Pradesh");
cs.put("Satara","Maharashtra");
cs.put("Bhadrak","Odisha");
cs.put("Kishanganj","Bihar");
cs.put("Suryapet","Telangana");
cs.put("Wardha","Maharashtra");
cs.put("Ranebennuru","Karnataka");
cs.put("Amreli","Gujarat");
cs.put("Neyveli (TS)","Tamil Nadu");
cs.put("Jamalpur","Bihar");
cs.put("Marmagao","Goa");
cs.put("Udgir","Maharashtra");
cs.put("Tadepalligudem","Andhra Pradesh");
cs.put("Nagapattinam","Tamil Nadu");
cs.put("Buxar","Bihar");
cs.put("Aurangabad","Maharashtra");
cs.put("Jehanabad","Bihar");
cs.put("Phagwara","Punjab");
cs.put("Khair","Uttar Pradesh");
cs.put("Sawai Madhopur","Rajasthan");
cs.put("Kapurthala","Punjab");
cs.put("Chilakaluripet","Andhra Pradesh");
cs.put("Aurangabad","Bihar");
cs.put("Malappuram","Kerala");
cs.put("Rewari","Haryana");
cs.put("Nagaur","Rajasthan");
cs.put("Sultanpur","Uttar Pradesh");
cs.put("Nagda","Madhya Pradesh");
cs.put("Port Blair","Andaman and Nicobar Islands");
cs.put("Lakhisarai","Bihar");
cs.put("Panaji","Goa");
cs.put("Tinsukia","Assam");
cs.put("Itarsi","Madhya Pradesh");
cs.put("Kohima","Nagaland");
cs.put("Balangir","Odisha");
cs.put("Nawada","Bihar");
cs.put("Jharsuguda","Odisha");
cs.put("Jagtial","Telangana");
cs.put("Viluppuram","Tamil Nadu");
cs.put("Amalner","Maharashtra");
cs.put("Zirakpur","Punjab");
cs.put("Tanda","Uttar Pradesh");
cs.put("Tiruchengode","Tamil Nadu");
cs.put("Nagina","Uttar Pradesh");
cs.put("Yemmiganur","Andhra Pradesh");
cs.put("Vaniyambadi","Tamil Nadu");
cs.put("Sarni","Madhya Pradesh");
cs.put("Theni Allinagaram","Tamil Nadu");
cs.put("Margao","Goa");
cs.put("Akot","Maharashtra");
cs.put("Sehore","Madhya Pradesh");
cs.put("Mhow Cantonment","Madhya Pradesh");
cs.put("Kot Kapura","Punjab");
cs.put("Makrana","Rajasthan");
cs.put("Pandharpur","Maharashtra");
cs.put("Miryalaguda","Telangana");
cs.put("Shamli","Uttar Pradesh");
cs.put("Seoni","Madhya Pradesh");
cs.put("Ranibennur","Karnataka");
cs.put("Kadiri","Andhra Pradesh");
cs.put("Shrirampur","Maharashtra");
cs.put("Rudrapur","Uttarakhand");
cs.put("Parli","Maharashtra");
cs.put("Najibabad","Uttar Pradesh");
cs.put("Nirmal","Telangana");
cs.put("Udhagamandalam","Tamil Nadu");
cs.put("Shikohabad","Uttar Pradesh");
cs.put("Jhumri Tilaiya","Jharkhand");
cs.put("Aruppukkottai","Tamil Nadu");
cs.put("Ponnani","Kerala");
cs.put("Jamui","Bihar");
cs.put("Sitamarhi","Bihar");
cs.put("Chirala","Andhra Pradesh");
cs.put("Anjar","Gujarat");
cs.put("Karaikal","Puducherry");
cs.put("Hansi","Haryana");
cs.put("Anakapalle","Andhra Pradesh");
cs.put("Mahasamund","Chhattisgarh");
cs.put("Faridkot","Punjab");
cs.put("Saunda","Jharkhand");
cs.put("Dhoraji","Gujarat");
cs.put("Paramakudi","Tamil Nadu");
cs.put("Balaghat","Madhya Pradesh");
cs.put("Sujangarh","Rajasthan");
cs.put("Khambhat","Gujarat");
cs.put("Muktsar","Punjab");
cs.put("Rajpura","Punjab");
cs.put("Kavali","Andhra Pradesh");
cs.put("Dhamtari","Chhattisgarh");
cs.put("Ashok Nagar","Madhya Pradesh");
cs.put("Sardarshahar","Rajasthan");
cs.put("Mahuva","Gujarat");
cs.put("Bargarh","Odisha");
cs.put("Kamareddy","Telangana");
cs.put("Sahibganj","Jharkhand");
cs.put("Kothagudem","Telangana");
cs.put("Ramanagaram","Karnataka");
cs.put("Gokak","Karnataka");
cs.put("Tikamgarh","Madhya Pradesh");
cs.put("Araria","Bihar");
cs.put("Rishikesh","Uttarakhand");
cs.put("Shahdol","Madhya Pradesh");
cs.put("Medininagar (Daltonganj)","Jharkhand");
cs.put("Arakkonam","Tamil Nadu");
cs.put("Washim","Maharashtra");
cs.put("Sangrur","Punjab");
cs.put("Bodhan","Telangana");
cs.put("Fazilka","Punjab");
cs.put("Palacole","Andhra Pradesh");
cs.put("Keshod","Gujarat");
cs.put("Sullurpeta","Andhra Pradesh");
cs.put("Wadhwan","Gujarat");
cs.put("Gurdaspur","Punjab");
cs.put("Vatakara","Kerala");
cs.put("Tura","Meghalaya");
cs.put("Narnaul","Haryana");
cs.put("Kharar","Punjab");
cs.put("Yadgir","Karnataka");
cs.put("Ambejogai","Maharashtra");
cs.put("Ankleshwar","Gujarat");
cs.put("Savarkundla","Gujarat");
cs.put("Paradip","Odisha");
cs.put("Virudhachalam","Tamil Nadu");
cs.put("Kanhangad","Kerala");
cs.put("Kadi","Gujarat");
cs.put("Srivilliputhur","Tamil Nadu");
cs.put("Gobindgarh","Punjab");
cs.put("Tindivanam","Tamil Nadu");
cs.put("Mansa","Punjab");
cs.put("Taliparamba","Kerala");
cs.put("Manmad","Maharashtra");
cs.put("Tanuku","Andhra Pradesh");
cs.put("Rayachoti","Andhra Pradesh");
cs.put("Virudhunagar","Tamil Nadu");
cs.put("Koyilandy","Kerala");
cs.put("Jorhat","Assam");
cs.put("Karur","Tamil Nadu");
cs.put("Valparai","Tamil Nadu");
cs.put("Srikalahasti","Andhra Pradesh");
cs.put("Neyyattinkara","Kerala");
cs.put("Bapatla","Andhra Pradesh");
cs.put("Fatehabad","Haryana");
cs.put("Malout","Punjab");
cs.put("Sankarankovil","Tamil Nadu");
cs.put("Tenkasi","Tamil Nadu");
cs.put("Ratnagiri","Maharashtra");
cs.put("Rabkavi Banhatti","Karnataka");
cs.put("Sikandrabad","Uttar Pradesh");
cs.put("Chaibasa","Jharkhand");
cs.put("Chirmiri","Chhattisgarh");
cs.put("Palwancha","Telangana");
cs.put("Bhawanipatna","Odisha");
cs.put("Kayamkulam","Kerala");
cs.put("Pithampur","Madhya Pradesh");
cs.put("Nabha","Punjab");
cs.put("Shahabad, Hardoi","Uttar Pradesh");
cs.put("Dhenkanal","Odisha");
cs.put("Uran Islampur","Maharashtra");
cs.put("Gopalganj","Bihar");
cs.put("Bongaigaon City","Assam");
cs.put("Palani","Tamil Nadu");
cs.put("Pusad","Maharashtra");
cs.put("Sopore","Jammu and Kashmir");
cs.put("Pilkhuwa","Uttar Pradesh");
cs.put("Tarn Taran","Punjab");
cs.put("Renukoot","Uttar Pradesh");
cs.put("Mandamarri","Telangana");
cs.put("Shahabad","Karnataka");
cs.put("Barbil","Odisha");
cs.put("Koratla","Telangana");
cs.put("Madhubani","Bihar");
cs.put("Arambagh","West Bengal");
cs.put("Gohana","Haryana");
cs.put("Ladnu","Rajasthan");
cs.put("Pattukkottai","Tamil Nadu");
cs.put("Sirsi","Karnataka");
cs.put("Sircilla","Telangana");
cs.put("Tamluk","West Bengal");
cs.put("Jagraon","Punjab");
cs.put("AlipurdUrban Agglomerationr","West Bengal");
cs.put("Alirajpur","Madhya Pradesh");
cs.put("Tandur","Telangana");
cs.put("Naidupet","Andhra Pradesh");
cs.put("Tirupathur","Tamil Nadu");
cs.put("Tohana","Haryana");
cs.put("Ratangarh","Rajasthan");
cs.put("Dhubri","Assam");
cs.put("Masaurhi","Bihar");
cs.put("Visnagar","Gujarat");
cs.put("Vrindavan","Uttar Pradesh");
cs.put("Nokha","Rajasthan");
cs.put("Nagari","Andhra Pradesh");
cs.put("Narwana","Haryana");
cs.put("Ramanathapuram","Tamil Nadu");
cs.put("Ujhani","Uttar Pradesh");
cs.put("Samastipur","Bihar");
cs.put("Laharpur","Uttar Pradesh");
cs.put("Sangamner","Maharashtra");
cs.put("Nimbahera","Rajasthan");
cs.put("Siddipet","Telangana");
cs.put("Suri","West Bengal");
cs.put("Diphu","Assam");
cs.put("Jhargram","West Bengal");
cs.put("Shirpur-Warwade","Maharashtra");
cs.put("Tilhar","Uttar Pradesh");
cs.put("Sindhnur","Karnataka");
cs.put("Udumalaipettai","Tamil Nadu");
cs.put("Malkapur","Maharashtra");
cs.put("Wanaparthy","Telangana");
cs.put("Gudur","Andhra Pradesh");
cs.put("Kendujhar","Odisha");
cs.put("Mandla","Madhya Pradesh");
cs.put("Mandi","Himachal Pradesh");
cs.put("Nedumangad","Kerala");
cs.put("North Lakhimpur","Assam");
cs.put("Vinukonda","Andhra Pradesh");
cs.put("Tiptur","Karnataka");
cs.put("Gobichettipalayam","Tamil Nadu");
cs.put("Sunabeda","Odisha");
cs.put("Wani","Maharashtra");
cs.put("Upleta","Gujarat");
cs.put("Narasapuram","Andhra Pradesh");
cs.put("Nuzvid","Andhra Pradesh");
cs.put("Tezpur","Assam");
cs.put("Una","Gujarat");
cs.put("Markapur","Andhra Pradesh");
cs.put("Sheopur","Madhya Pradesh");
cs.put("Thiruvarur","Tamil Nadu");
cs.put("Sidhpur","Gujarat");
cs.put("Sahaswan","Uttar Pradesh");
cs.put("Suratgarh","Rajasthan");
cs.put("Shajapur","Madhya Pradesh");
cs.put("Rayagada","Odisha");
cs.put("Lonavla","Maharashtra");
cs.put("Ponnur","Andhra Pradesh");
cs.put("Kagaznagar","Telangana");
cs.put("Gadwal","Telangana");
cs.put("Bhatapara","Chhattisgarh");
cs.put("Kandukur","Andhra Pradesh");
cs.put("Sangareddy","Telangana");
cs.put("Unjha","Gujarat");
cs.put("Lunglei","Mizoram");
cs.put("Karimganj","Assam");
cs.put("Kannur","Kerala");
cs.put("Bobbili","Andhra Pradesh");
cs.put("Mokameh","Bihar");
cs.put("Talegaon Dabhade","Maharashtra");
cs.put("Anjangaon","Maharashtra");
cs.put("Mangrol","Gujarat");
cs.put("Sunam","Punjab");
cs.put("Gangarampur","West Bengal");
cs.put("Thiruvallur","Tamil Nadu");
cs.put("Tirur","Kerala");
cs.put("Rath","Uttar Pradesh");
cs.put("Jatani","Odisha");
cs.put("Viramgam","Gujarat");
cs.put("Rajsamand","Rajasthan");
cs.put("Yanam","Puducherry");
cs.put("Kottayam","Kerala");
cs.put("Panruti","Tamil Nadu");
cs.put("Dhuri","Punjab");
cs.put("Namakkal","Tamil Nadu");
cs.put("Kasaragod","Kerala");
cs.put("Modasa","Gujarat");
cs.put("Rayadurg","Andhra Pradesh");
cs.put("Supaul","Bihar");
cs.put("Kunnamkulam","Kerala");
cs.put("Umred","Maharashtra");
cs.put("Bellampalle","Telangana");
cs.put("Sibsagar","Assam");
cs.put("Mandi Dabwali","Haryana");
cs.put("Ottappalam","Kerala");
cs.put("Dumraon","Bihar");
cs.put("Samalkot","Andhra Pradesh");
cs.put("Jaggaiahpet","Andhra Pradesh");
cs.put("Goalpara","Assam");
cs.put("Tuni","Andhra Pradesh");
cs.put("Lachhmangarh","Rajasthan");
cs.put("Bhongir","Telangana");
cs.put("Amalapuram","Andhra Pradesh");
cs.put("Firozpur Cantt.","Punjab");
cs.put("Vikarabad","Telangana");
cs.put("Thiruvalla","Kerala");
cs.put("Sherkot","Uttar Pradesh");
cs.put("Palghar","Maharashtra");
cs.put("Shegaon","Maharashtra");
cs.put("Jangaon","Telangana");
cs.put("Bheemunipatnam","Andhra Pradesh");
cs.put("Panna","Madhya Pradesh");
cs.put("Thodupuzha","Kerala");
cs.put("KathUrban Agglomeration","Jammu and Kashmir");
cs.put("Palitana","Gujarat");
cs.put("Arwal","Bihar");
cs.put("Venkatagiri","Andhra Pradesh");
cs.put("Kalpi","Uttar Pradesh");
cs.put("Rajgarh (Churu)","Rajasthan");
cs.put("Sattenapalle","Andhra Pradesh");
cs.put("Arsikere","Karnataka");
cs.put("Ozar","Maharashtra");
cs.put("Thirumangalam","Tamil Nadu");
cs.put("Petlad","Gujarat");
cs.put("Nasirabad","Rajasthan");
cs.put("Phaltan","Maharashtra");
cs.put("Rampurhat","West Bengal");
cs.put("Nanjangud","Karnataka");
cs.put("Forbesganj","Bihar");
cs.put("Tundla","Uttar Pradesh");
cs.put("BhabUrban Agglomeration","Bihar");
cs.put("Sagara","Karnataka");
cs.put("Pithapuram","Andhra Pradesh");
cs.put("Sira","Karnataka");
cs.put("Bhadrachalam","Telangana");
cs.put("Charkhi Dadri","Haryana");
cs.put("Chatra","Jharkhand");
cs.put("Palasa Kasibugga","Andhra Pradesh");
cs.put("Nohar","Rajasthan");
cs.put("Yevla","Maharashtra");
cs.put("Sirhind Fatehgarh Sahib","Punjab");
cs.put("Bhainsa","Telangana");
cs.put("Parvathipuram","Andhra Pradesh");
cs.put("Shahade","Maharashtra");
cs.put("Chalakudy","Kerala");
cs.put("Narkatiaganj","Bihar");
cs.put("Kapadvanj","Gujarat");
cs.put("Macherla","Andhra Pradesh");
cs.put("Raghogarh-Vijaypur","Madhya Pradesh");
cs.put("Rupnagar","Punjab");
cs.put("Naugachhia","Bihar");
cs.put("Sendhwa","Madhya Pradesh");
cs.put("Byasanagar","Odisha");
cs.put("Sandila","Uttar Pradesh");
cs.put("Gooty","Andhra Pradesh");
cs.put("Salur","Andhra Pradesh");
cs.put("Nanpara","Uttar Pradesh");
cs.put("Sardhana","Uttar Pradesh");
cs.put("Vita","Maharashtra");
cs.put("Gumia","Jharkhand");
cs.put("Puttur","Karnataka");
cs.put("Jalandhar Cantt.","Punjab");
cs.put("Nehtaur","Uttar Pradesh");
cs.put("Changanassery","Kerala");
cs.put("Mandapeta","Andhra Pradesh");
cs.put("Dumka","Jharkhand");
cs.put("Seohara","Uttar Pradesh");
cs.put("Umarkhed","Maharashtra");
cs.put("Madhupur","Jharkhand");
cs.put("Vikramasingapuram","Tamil Nadu");
cs.put("Punalur","Kerala");
cs.put("Kendrapara","Odisha");
cs.put("Sihor","Gujarat");
cs.put("Nellikuppam","Tamil Nadu");
cs.put("Samana","Punjab");
cs.put("Warora","Maharashtra");
cs.put("Nilambur","Kerala");
cs.put("Rasipuram","Tamil Nadu");
cs.put("Ramnagar","Uttarakhand");
cs.put("Jammalamadugu","Andhra Pradesh");
cs.put("Nawanshahr","Punjab");
cs.put("Thoubal","Manipur");
cs.put("Athni","Karnataka");
cs.put("Cherthala","Kerala");
cs.put("Sidhi","Madhya Pradesh");
cs.put("Farooqnagar","Telangana");
cs.put("Peddapuram","Andhra Pradesh");
cs.put("Chirkunda","Jharkhand");
cs.put("Pachora","Maharashtra");
cs.put("Madhepura","Bihar");
cs.put("Pithoragarh","Uttarakhand");
cs.put("Tumsar","Maharashtra");
cs.put("Phalodi","Rajasthan");
cs.put("Tiruttani","Tamil Nadu");
cs.put("Rampura Phul","Punjab");
cs.put("Perinthalmanna","Kerala");
cs.put("Padrauna","Uttar Pradesh");
cs.put("Pipariya","Madhya Pradesh");
cs.put("Dalli-Rajhara","Chhattisgarh");
cs.put("Punganur","Andhra Pradesh");
cs.put("Mattannur","Kerala");
cs.put("Mathura","Uttar Pradesh");
cs.put("Thakurdwara","Uttar Pradesh");
cs.put("Nandivaram-Guduvancheri","Tamil Nadu");
cs.put("Mulbagal","Karnataka");
cs.put("Manjlegaon","Maharashtra");
cs.put("Wankaner","Gujarat");
cs.put("Sillod","Maharashtra");
cs.put("Nidadavole","Andhra Pradesh");
cs.put("Surapura","Karnataka");
cs.put("Rajagangapur","Odisha");
cs.put("Sheikhpura","Bihar");
cs.put("Parlakhemundi","Odisha");
cs.put("Kalimpong","West Bengal");
cs.put("Siruguppa","Karnataka");
cs.put("Arvi","Maharashtra");
cs.put("Limbdi","Gujarat");
cs.put("Barpeta","Assam");
cs.put("Manglaur","Uttarakhand");
cs.put("Repalle","Andhra Pradesh");
cs.put("Mudhol","Karnataka");
cs.put("Shujalpur","Madhya Pradesh");
cs.put("Mandvi","Gujarat");
cs.put("Thangadh","Gujarat");
cs.put("Sironj","Madhya Pradesh");
cs.put("Nandura","Maharashtra");
cs.put("Shoranur","Kerala");
cs.put("Nathdwara","Rajasthan");
cs.put("Periyakulam","Tamil Nadu");
cs.put("Sultanganj","Bihar");
cs.put("Medak","Telangana");
cs.put("Narayanpet","Telangana");
cs.put("Raxaul Bazar","Bihar");
cs.put("Rajauri","Jammu and Kashmir");
cs.put("Pernampattu","Tamil Nadu");
cs.put("Nainital","Uttarakhand");
cs.put("Ramachandrapuram","Andhra Pradesh");
cs.put("Vaijapur","Maharashtra");
cs.put("Nangal","Punjab");
cs.put("Sidlaghatta","Karnataka");
cs.put("Punch","Jammu and Kashmir");
cs.put("Pandhurna","Madhya Pradesh");
cs.put("Wadgaon Road","Maharashtra");
cs.put("Talcher","Odisha");
cs.put("Varkala","Kerala");
cs.put("Pilani","Rajasthan");
cs.put("Nowgong","Madhya Pradesh");
cs.put("Naila Janjgir","Chhattisgarh");
cs.put("Mapusa","Goa");
cs.put("Vellakoil","Tamil Nadu");
cs.put("Merta City","Rajasthan");
cs.put("Sivaganga","Tamil Nadu");
cs.put("Mandideep","Madhya Pradesh");
cs.put("Sailu","Maharashtra");
cs.put("Vyara","Gujarat");
cs.put("Kovvur","Andhra Pradesh");
cs.put("Vadalur","Tamil Nadu");
cs.put("Nawabganj","Uttar Pradesh");
cs.put("Padra","Gujarat");
cs.put("Sainthia","West Bengal");
cs.put("Siana","Uttar Pradesh");
cs.put("Shahpur","Karnataka");
cs.put("Sojat","Rajasthan");
cs.put("Noorpur","Uttar Pradesh");
cs.put("Paravoor","Kerala");
cs.put("Murtijapur","Maharashtra");
cs.put("Ramnagar","Bihar");
cs.put("Sundargarh","Odisha");
cs.put("Taki","West Bengal");
cs.put("Saundatti-Yellamma","Karnataka");
cs.put("Pathanamthitta","Kerala");
cs.put("Wadi","Karnataka");
cs.put("Rameshwaram","Tamil Nadu");
cs.put("Tasgaon","Maharashtra");
cs.put("Sikandra Rao","Uttar Pradesh");
cs.put("Sihora","Madhya Pradesh");
cs.put("Tiruvethipuram","Tamil Nadu");
cs.put("Tiruvuru","Andhra Pradesh");
cs.put("Mehkar","Maharashtra");
cs.put("Peringathur","Kerala");
cs.put("Perambalur","Tamil Nadu");
cs.put("Manvi","Karnataka");
cs.put("Zunheboto","Nagaland");
cs.put("Mahnar Bazar","Bihar");
cs.put("Attingal","Kerala");
cs.put("Shahbad","Haryana");
cs.put("Puranpur","Uttar Pradesh");
cs.put("Nelamangala","Karnataka");
cs.put("Nakodar","Punjab");
cs.put("Lunawada","Gujarat");
cs.put("Murshidabad","West Bengal");
cs.put("Mahe","Puducherry");
cs.put("Lanka","Assam");
cs.put("Rudauli","Uttar Pradesh");
cs.put("Tuensang","Nagaland");
cs.put("Lakshmeshwar","Karnataka");
cs.put("Zira","Punjab");
cs.put("Yawal","Maharashtra");
cs.put("Thana Bhawan","Uttar Pradesh");
cs.put("Ramdurg","Karnataka");
cs.put("Pulgaon","Maharashtra");
cs.put("Sadasivpet","Telangana");
cs.put("Nargund","Karnataka");
cs.put("Neem-Ka-Thana","Rajasthan");
cs.put("Memari","West Bengal");
cs.put("Nilanga","Maharashtra");
cs.put("Naharlagun","Arunachal Pradesh");
cs.put("Pakaur","Jharkhand");
cs.put("Wai","Maharashtra");
cs.put("Tarikere","Karnataka");
cs.put("Malavalli","Karnataka");
cs.put("Raisen","Madhya Pradesh");
cs.put("Lahar","Madhya Pradesh");
cs.put("Uravakonda","Andhra Pradesh");
cs.put("Savanur","Karnataka");
cs.put("Sirohi","Rajasthan");
cs.put("Udhampur","Jammu and Kashmir");
cs.put("Umarga","Maharashtra");
cs.put("Pratapgarh","Rajasthan");
cs.put("Lingsugur","Karnataka");
cs.put("Usilampatti","Tamil Nadu");
cs.put("Palia Kalan","Uttar Pradesh");
cs.put("Wokha","Nagaland");
cs.put("Rajpipla","Gujarat");
cs.put("Vijayapura","Karnataka");
cs.put("Rawatbhata","Rajasthan");
cs.put("Sangaria","Rajasthan");
cs.put("Paithan","Maharashtra");
cs.put("Rahuri","Maharashtra");
cs.put("Patti","Punjab");
cs.put("Zaidpur","Uttar Pradesh");
cs.put("Lalsot","Rajasthan");
cs.put("Maihar","Madhya Pradesh");
cs.put("Vedaranyam","Tamil Nadu");
cs.put("Nawapur","Maharashtra");
cs.put("Solan","Himachal Pradesh");
cs.put("Vapi","Gujarat");
cs.put("Sanawad","Madhya Pradesh");
cs.put("Warisaliganj","Bihar");
cs.put("Revelganj","Bihar");
cs.put("Sabalgarh","Madhya Pradesh");
cs.put("Tuljapur","Maharashtra");
cs.put("Simdega","Jharkhand");
cs.put("Musabani","Jharkhand");
cs.put("Kodungallur","Kerala");
cs.put("Phulabani","Odisha");
cs.put("Umreth","Gujarat");
cs.put("Narsipatnam","Andhra Pradesh");
cs.put("Nautanwa","Uttar Pradesh");
cs.put("Rajgir","Bihar");
cs.put("Yellandu","Telangana");
cs.put("Sathyamangalam","Tamil Nadu");
cs.put("Pilibanga","Rajasthan");
cs.put("Morshi","Maharashtra");
cs.put("Pehowa","Haryana");
cs.put("Sonepur","Bihar");
cs.put("Pappinisseri","Kerala");
cs.put("Zamania","Uttar Pradesh");
cs.put("Mihijam","Jharkhand");
cs.put("Purna","Maharashtra");
cs.put("Puliyankudi","Tamil Nadu");
cs.put("Shikarpur, Bulandshahr","Uttar Pradesh");
cs.put("Umaria","Madhya Pradesh");
cs.put("Porsa","Madhya Pradesh");
cs.put("Naugawan Sadat","Uttar Pradesh");
cs.put("Fatehpur Sikri","Uttar Pradesh");
cs.put("Manuguru","Telangana");
cs.put("Udaipur","Tripura");
cs.put("Pipar City","Rajasthan");
cs.put("Pattamundai","Odisha");
cs.put("Nanjikottai","Tamil Nadu");
cs.put("Taranagar","Rajasthan");
cs.put("Yerraguntla","Andhra Pradesh");
cs.put("Satana","Maharashtra");
cs.put("Sherghati","Bihar");
cs.put("Sankeshwara","Karnataka");
cs.put("Madikeri","Karnataka");
cs.put("Thuraiyur","Tamil Nadu");
cs.put("Sanand","Gujarat");
cs.put("Rajula","Gujarat");
cs.put("Kyathampalle","Telangana");
cs.put("Shahabad, Rampur","Uttar Pradesh");
cs.put("Tilda Newra","Chhattisgarh");
cs.put("Narsinghgarh","Madhya Pradesh");
cs.put("Chittur-Thathamangalam","Kerala");
cs.put("Malaj Khand","Madhya Pradesh");
cs.put("Sarangpur","Madhya Pradesh");
cs.put("Robertsganj","Uttar Pradesh");
cs.put("Sirkali","Tamil Nadu");
cs.put("Radhanpur","Gujarat");
cs.put("Tiruchendur","Tamil Nadu");
cs.put("Utraula","Uttar Pradesh");
cs.put("Patratu","Jharkhand");
cs.put("Vijainagar, Ajmer","Rajasthan");
cs.put("Periyasemur","Tamil Nadu");
cs.put("Pathri","Maharashtra");
cs.put("Sadabad","Uttar Pradesh");
cs.put("Talikota","Karnataka");
cs.put("Sinnar","Maharashtra");
cs.put("Mungeli","Chhattisgarh");
cs.put("Sedam","Karnataka");
cs.put("Shikaripur","Karnataka");
cs.put("Sumerpur","Rajasthan");
cs.put("Sattur","Tamil Nadu");
cs.put("Sugauli","Bihar");
cs.put("Lumding","Assam");
cs.put("Vandavasi","Tamil Nadu");
cs.put("Titlagarh","Odisha");
cs.put("Uchgaon","Maharashtra");
cs.put("Mokokchung","Nagaland");
cs.put("Paschim Punropara","West Bengal");
cs.put("Sagwara","Rajasthan");
cs.put("Ramganj Mandi","Rajasthan");
cs.put("Tarakeswar","West Bengal");
cs.put("Mahalingapura","Karnataka");
cs.put("Dharmanagar","Tripura");
cs.put("Mahemdabad","Gujarat");
cs.put("Manendragarh","Chhattisgarh");
cs.put("Uran","Maharashtra");
cs.put("Tharamangalam","Tamil Nadu");
cs.put("Tirukkoyilur","Tamil Nadu");
cs.put("Pen","Maharashtra");
cs.put("Makhdumpur","Bihar");
cs.put("Maner","Bihar");
cs.put("Oddanchatram","Tamil Nadu");
cs.put("Palladam","Tamil Nadu");
cs.put("Mundi","Madhya Pradesh");
cs.put("Nabarangapur","Odisha");
cs.put("Mudalagi","Karnataka");
cs.put("Samalkha","Haryana");
cs.put("Nepanagar","Madhya Pradesh");
cs.put("Karjat","Maharashtra");
cs.put("Ranavav","Gujarat");
cs.put("Pedana","Andhra Pradesh");
cs.put("Pinjore","Haryana");
cs.put("Lakheri","Rajasthan");
cs.put("Pasan","Madhya Pradesh");
cs.put("Puttur","Andhra Pradesh");
cs.put("Vadakkuvalliyur","Tamil Nadu");
cs.put("Tirukalukundram","Tamil Nadu");
cs.put("Mahidpur","Madhya Pradesh");
cs.put("Mussoorie","Uttarakhand");
cs.put("Muvattupuzha","Kerala");
cs.put("Rasra","Uttar Pradesh");
cs.put("Udaipurwati","Rajasthan");
cs.put("Manwath","Maharashtra");
cs.put("Adoor","Kerala");
cs.put("Uthamapalayam","Tamil Nadu");
cs.put("Partur","Maharashtra");
cs.put("Nahan","Himachal Pradesh");
cs.put("Ladwa","Haryana");
cs.put("Mankachar","Assam");
cs.put("Nongstoin","Meghalaya");
cs.put("Losal","Rajasthan");
cs.put("Sri Madhopur","Rajasthan");
cs.put("Ramngarh","Rajasthan");
cs.put("Mavelikkara","Kerala");
cs.put("Rawatsar","Rajasthan");
cs.put("Rajakhera","Rajasthan");
cs.put("Lar","Uttar Pradesh");
cs.put("Lal Gopalganj Nindaura","Uttar Pradesh");
cs.put("Muddebihal","Karnataka");
cs.put("Sirsaganj","Uttar Pradesh");
cs.put("Shahpura","Rajasthan");
cs.put("Surandai","Tamil Nadu");
cs.put("Sangole","Maharashtra");
cs.put("Pavagada","Karnataka");
cs.put("Tharad","Gujarat");
cs.put("Mansa","Gujarat");
cs.put("Umbergaon","Gujarat");
cs.put("Mavoor","Kerala");
cs.put("Nalbari","Assam");
cs.put("Talaja","Gujarat");
cs.put("Malur","Karnataka");
cs.put("Mangrulpir","Maharashtra");
cs.put("Soro","Odisha");
cs.put("Shahpura","Rajasthan");
cs.put("Vadnagar","Gujarat");
cs.put("Raisinghnagar","Rajasthan");
cs.put("Sindhagi","Karnataka");
cs.put("Sanduru","Karnataka");
cs.put("Sohna","Haryana");
cs.put("Manavadar","Gujarat");
cs.put("Pihani","Uttar Pradesh");
cs.put("Safidon","Haryana");
cs.put("Risod","Maharashtra");
cs.put("Rosera","Bihar");
cs.put("Sankari","Tamil Nadu");
cs.put("Malpura","Rajasthan");
cs.put("Sonamukhi","West Bengal");
cs.put("Shamsabad, Agra","Uttar Pradesh");
cs.put("Nokha","Bihar");
cs.put("PandUrban Agglomeration","West Bengal");
cs.put("Mainaguri","West Bengal");
cs.put("Afzalpur","Karnataka");
cs.put("Shirur","Maharashtra");
cs.put("Salaya","Gujarat");
cs.put("Shenkottai","Tamil Nadu");
cs.put("Pratapgarh","Tripura");
cs.put("Vadipatti","Tamil Nadu");
cs.put("Nagarkurnool","Telangana");
cs.put("Savner","Maharashtra");
cs.put("Sasvad","Maharashtra");
cs.put("Rudrapur","Uttar Pradesh");
cs.put("Soron","Uttar Pradesh");
cs.put("Sholingur","Tamil Nadu");
cs.put("Pandharkaoda","Maharashtra");
cs.put("Perumbavoor","Kerala");
cs.put("Maddur","Karnataka");
cs.put("Nadbai","Rajasthan");
cs.put("Talode","Maharashtra");
cs.put("Shrigonda","Maharashtra");
cs.put("Madhugiri","Karnataka");
cs.put("Tekkalakote","Karnataka");
cs.put("Seoni-Malwa","Madhya Pradesh");
cs.put("Shirdi","Maharashtra");
cs.put("SUrban Agglomerationr","Uttar Pradesh");
cs.put("Terdal","Karnataka");
cs.put("Raver","Maharashtra");
cs.put("Tirupathur","Tamil Nadu");
cs.put("Taraori","Haryana");
cs.put("Mukhed","Maharashtra");
cs.put("Manachanallur","Tamil Nadu");
cs.put("Rehli","Madhya Pradesh");
cs.put("Sanchore","Rajasthan");
cs.put("Rajura","Maharashtra");
cs.put("Piro","Bihar");
cs.put("Mudabidri","Karnataka");
cs.put("Vadgaon Kasba","Maharashtra");
cs.put("Nagar","Rajasthan");
cs.put("Vijapur","Gujarat");
cs.put("Viswanatham","Tamil Nadu");
cs.put("Polur","Tamil Nadu");
cs.put("Panagudi","Tamil Nadu");
cs.put("Manawar","Madhya Pradesh");
cs.put("Tehri","Uttarakhand");
cs.put("Samdhan","Uttar Pradesh");
cs.put("Pardi","Gujarat");
cs.put("Rahatgarh","Madhya Pradesh");
cs.put("Panagar","Madhya Pradesh");
cs.put("Uthiramerur","Tamil Nadu");
cs.put("Tirora","Maharashtra");
cs.put("Rangia","Assam");
cs.put("Sahjanwa","Uttar Pradesh");
cs.put("Wara Seoni","Madhya Pradesh");
cs.put("Magadi","Karnataka");
cs.put("Rajgarh (Alwar)","Rajasthan");
cs.put("Rafiganj","Bihar");
cs.put("Tarana","Madhya Pradesh");
cs.put("Rampur Maniharan","Uttar Pradesh");
cs.put("Sheoganj","Rajasthan");
cs.put("Raikot","Punjab");
cs.put("Pauri","Uttarakhand");
cs.put("Sumerpur","Uttar Pradesh");
cs.put("Navalgund","Karnataka");
cs.put("Shahganj","Uttar Pradesh");
cs.put("Marhaura","Bihar");
cs.put("Tulsipur","Uttar Pradesh");
cs.put("Sadri","Rajasthan");
cs.put("Thiruthuraipoondi","Tamil Nadu");
cs.put("Shiggaon","Karnataka");
cs.put("Pallapatti","Tamil Nadu");
cs.put("Mahendragarh","Haryana");
cs.put("Sausar","Madhya Pradesh");
cs.put("Ponneri","Tamil Nadu");
cs.put("Mahad","Maharashtra");
cs.put("Lohardaga","Jharkhand");
cs.put("Tirwaganj","Uttar Pradesh");
cs.put("Margherita","Assam");
cs.put("Sundarnagar","Himachal Pradesh");
cs.put("Rajgarh","Madhya Pradesh");
cs.put("Mangaldoi","Assam");
cs.put("Renigunta","Andhra Pradesh");
cs.put("Longowal","Punjab");
cs.put("Ratia","Haryana");
cs.put("Lalgudi","Tamil Nadu");
cs.put("Shrirangapattana","Karnataka");
cs.put("Niwari","Madhya Pradesh");
cs.put("Natham","Tamil Nadu");
cs.put("Unnamalaikadai","Tamil Nadu");
cs.put("PurqUrban Agglomerationzi","Uttar Pradesh");
cs.put("Shamsabad, Farrukhabad","Uttar Pradesh");
cs.put("Mirganj","Bihar");
cs.put("Todaraisingh","Rajasthan");
cs.put("Warhapur","Uttar Pradesh");
cs.put("Rajam","Andhra Pradesh");
cs.put("Urmar Tanda","Punjab");
cs.put("Lonar","Maharashtra");
cs.put("Powayan","Uttar Pradesh");
cs.put("P.N.Patti","Tamil Nadu");
cs.put("Palampur","Himachal Pradesh");
cs.put("Srisailam Project (Right Flank Colony) Township","Andhra Pradesh");
cs.put("Sindagi","Karnataka");
cs.put("Sandi","Uttar Pradesh");
cs.put("Vaikom","Kerala");
cs.put("Malda","West Bengal");
cs.put("Tharangambadi","Tamil Nadu");
cs.put("Sakaleshapura","Karnataka");
cs.put("Lalganj","Bihar");
cs.put("Malkangiri","Odisha");
cs.put("Rapar","Gujarat");
cs.put("Mauganj","Madhya Pradesh");
cs.put("Todabhim","Rajasthan");
cs.put("Srinivaspur","Karnataka");
cs.put("Murliganj","Bihar");
cs.put("Reengus","Rajasthan");
cs.put("Sawantwadi","Maharashtra");
cs.put("Tittakudi","Tamil Nadu");
cs.put("Lilong","Manipur");
cs.put("Rajaldesar","Rajasthan");
cs.put("Pathardi","Maharashtra");
cs.put("Achhnera","Uttar Pradesh");
cs.put("Pacode","Tamil Nadu");
cs.put("Naraura","Uttar Pradesh");
cs.put("Nakur","Uttar Pradesh");
cs.put("Palai","Kerala");
cs.put("Morinda, India","Punjab");
cs.put("Manasa","Madhya Pradesh");
cs.put("Nainpur","Madhya Pradesh");
cs.put("Sahaspur","Uttar Pradesh");
cs.put("Pauni","Maharashtra");
cs.put("Prithvipur","Madhya Pradesh");
cs.put("Ramtek","Maharashtra");
cs.put("Silapathar","Assam");
cs.put("Songadh","Gujarat");
cs.put("Safipur","Uttar Pradesh");
cs.put("Sohagpur","Madhya Pradesh");
cs.put("Mul","Maharashtra");
cs.put("Sadulshahar","Rajasthan");
cs.put("Phillaur","Punjab");
cs.put("Sambhar","Rajasthan");
cs.put("Prantij","Rajasthan");
cs.put("Nagla","Uttarakhand");
cs.put("Pattran","Punjab");
cs.put("Mount Abu","Rajasthan");
cs.put("Reoti","Uttar Pradesh");
cs.put("Tenu dam-cum-Kathhara","Jharkhand");
cs.put("Panchla","West Bengal");
cs.put("Sitarganj","Uttarakhand");
cs.put("Pasighat","Arunachal Pradesh");
cs.put("Motipur","Bihar");
cs.put("O' Valley","Tamil Nadu");
cs.put("Raghunathpur","West Bengal");
cs.put("Suriyampalayam","Tamil Nadu");
cs.put("Qadian","Punjab");
cs.put("Rairangpur","Odisha");
cs.put("Silvassa","Dadra and Nagar Haveli");
cs.put("Nowrozabad (Khodargama)","Madhya Pradesh");
cs.put("Mangrol","Rajasthan");
cs.put("Soyagaon","Maharashtra");
cs.put("Sujanpur","Punjab");
cs.put("Manihari","Bihar");
cs.put("Sikanderpur","Uttar Pradesh");
cs.put("Mangalvedhe","Maharashtra");
cs.put("Phulera","Rajasthan");
cs.put("Ron","Karnataka");
cs.put("Sholavandan","Tamil Nadu");
cs.put("Saidpur","Uttar Pradesh");
cs.put("Shamgarh","Madhya Pradesh");
cs.put("Thammampatti","Tamil Nadu");
cs.put("Maharajpur","Madhya Pradesh");
cs.put("Multai","Madhya Pradesh");
cs.put("Mukerian","Punjab");
cs.put("Sirsi","Uttar Pradesh");
cs.put("Purwa","Uttar Pradesh");
cs.put("Sheohar","Bihar");
cs.put("Namagiripettai","Tamil Nadu");
cs.put("Parasi","Uttar Pradesh");
cs.put("Lathi","Gujarat");
cs.put("Lalganj","Uttar Pradesh");
cs.put("Narkhed","Maharashtra");
cs.put("Mathabhanga","West Bengal");
cs.put("Shendurjana","Maharashtra");
cs.put("Peravurani","Tamil Nadu");
cs.put("Mariani","Assam");
cs.put("Phulpur","Uttar Pradesh");
cs.put("Rania","Haryana");
cs.put("Pali","Madhya Pradesh");
cs.put("Pachore","Madhya Pradesh");
cs.put("Parangipettai","Tamil Nadu");
cs.put("Pudupattinam","Tamil Nadu");
cs.put("Panniyannur","Kerala");
cs.put("Maharajganj","Bihar");
cs.put("Rau","Madhya Pradesh");
cs.put("Monoharpur","West Bengal");
cs.put("Mandawa","Rajasthan");
cs.put("Marigaon","Assam");
cs.put("Pallikonda","Tamil Nadu");
cs.put("Pindwara","Rajasthan");
cs.put("Shishgarh","Uttar Pradesh");
cs.put("Patur","Maharashtra");
cs.put("Mayang Imphal","Manipur");
cs.put("Mhowgaon","Madhya Pradesh");
cs.put("Guruvayoor","Kerala");
cs.put("Mhaswad","Maharashtra");
cs.put("Sahawar","Uttar Pradesh");
cs.put("Sivagiri","Tamil Nadu");
cs.put("Mundargi","Karnataka");
cs.put("Punjaipugalur","Tamil Nadu");
cs.put("Kailasahar","Tripura");
cs.put("Samthar","Uttar Pradesh");
cs.put("Sakti","Chhattisgarh");
cs.put("Sadalagi","Karnataka");
cs.put("Silao","Bihar");
cs.put("Mandalgarh","Rajasthan");
cs.put("Loha","Maharashtra");
cs.put("Pukhrayan","Uttar Pradesh");
cs.put("Padmanabhapuram","Tamil Nadu");
cs.put("Belonia","Tripura");
cs.put("Saiha","Mizoram");
cs.put("Srirampore","West Bengal");
cs.put("Talwara","Punjab");
cs.put("Puthuppally","Kerala");
cs.put("Khowai","Tripura");
cs.put("Vijaypur","Madhya Pradesh");
cs.put("Takhatgarh","Rajasthan");
cs.put("Thirupuvanam","Tamil Nadu");
cs.put("Adra","West Bengal");
cs.put("Piriyapatna","Karnataka");
cs.put("Obra","Uttar Pradesh");
cs.put("Adalaj","Gujarat");
cs.put("Nandgaon","Maharashtra");
cs.put("Barh","Bihar");
cs.put("Chhapra","Gujarat");
cs.put("Panamattom","Kerala");
cs.put("Niwai","Uttar Pradesh");
cs.put("Bageshwar","Uttarakhand");
cs.put("Tarbha","Odisha");
cs.put("Adyar","Karnataka");
cs.put("Narsinghgarh","Madhya Pradesh");
cs.put("Warud","Maharashtra");
cs.put("Asarganj","Bihar");
cs.put("Sarsod","Haryana");
return cs.get(city);
}
return " ";
}




How can i get state name if i have city name


get state name by city name


function to get state name by city name in java