import java.io.*;
public class GFG {
// Returns true if s is
// a number else false
static boolean isNumber(String s)
{
for (int i = 0; i < s.length(); i++)
if (Character.isDigit(s.charAt(i)) == false)
return false;
return true;
}
// Driver code
static public void main(String[] args)
{
// Saving the input in a string
String str = "6790";
// Function returns 1 if all elements
// are in range '0 - 9'
if (isNumber(str))
System.out.println("Integer");
// Function returns 0 if the
// input is not an integer
else
System.out.println("String");
}
}
Swimming questions that you need to know how to do
Answer:
The light from the flashlight hits a mirror on the wall.
Explanation:
When the light from the flashlight hits a mirror on the wall, what happened is called Reflection. Reflection of light, however, is a term that describes a change in direction of a light wave as it reflects off a surface from one medium to another (e.g reflected from a mirror back to a flashlight)
Hence, what could cause the light coming from the flashlight to stop moving in a straight line is option D: The light from the flashlight hits a mirror on the wall.
The answer I got is b generation 2, synithetic