Question: I have two files **kestore1.jceks** and **keystore2.jceks**. 
I want to merge them and load into KeyStore object.

```java
KeyStore KEY_STORE = KeyStore.getInstance("JCEKS");

input1 = new FileInputStream("C:\\Users\\tushar.moradiya\\Desktop\\keystore\\keystore1.jceks");
KEY_STORE.load(input1, Constant.JCEKS_KEYSTORE_FILE_PASSWORD.toCharArray());

input2 = new FileInputStream("C:\\Users\\tushar.moradiya\\Desktop\\keystore\\keystore2.jceks");
KEY_STORE.load(input2, Constant.JCEKS_KEYSTORE_FILE_PASSWORD.toCharArray());

```

but it is not working. It overrides the last file in object.

Answer: 
The reason it is printing "Invalid weight." forever because you are taking input only once and using it every time i.e. weight\_kg is never updated once input taken.

Try code

```
# function that asks for player input in kg
def weight_input () :
  return float (input ("Enter valid weight: "))

# formula to convert kg into pounds
def weight_conversion(weight_kg):
  return 2.2 * weight_kg

def weight_info () :
  while True :
    weight_kg = weight_input()
    if weight_kg > 0 : # if weight > 0 we return the weight in pds
      return weight_conversion (weight_kg)
    else :
      print("Invalid weight.")
      continue  # go back to the start of the loop and ask for input
  return weight_pds

print (weight_info () )

```

TIP: If using functions, do not use global variables. They will persist last values, and if your code needed them to change/reset in every call, prefer using function parameters
The `continue` statement is used to skip the rest of the code inside a loop for the current iteration only. Loop does not terminate but continues on with the next iteration.

The `break` statement terminates the loop containing it. Control of the program flows to the statement immediately after the body of the loop.
If break statement is inside a nested loop (loop inside another loop), break will terminate the innermost loop.

So in your case with `continue` you just go back to the `while` still with a wrong input.

You ask for the input once, you need to ask for it again when the input is wrong.