Answer:
Program that removes all spaces from the given input
Explanation:
// An efficient Java program to remove all spaces
// from a string
class GFG
{
// Function to remove all spaces
// from a given string
static int removeSpaces(char []str)
{
// To keep track of non-space character count
int count = 0;
// Traverse the given string.
// If current character
// is not space, then place
// it at index 'count++'
for (int i = 0; i<str.length; i++)
if (str[i] != ' ')
str[count++] = str[i]; // here count is
// incremented
return count;
}
// Driver code
public static void main(String[] args)
{
char str[] = "g eeks for ge eeks ".toCharArray();
int i = removeSpaces(str);
System.out.println(String.valueOf(str).subSequence(0, i));
}
}
Explanation:!!
I hope you Feel better :)
Answer and Explanation:
<u>The correct answer choice is Contacting Overhead Power Lines.</u>
This is because the powerlines are making contact (touching) his car, and the example isn't related to the other answer choices.
<u><em>#teamtrees #PAW (Plant And Water)</em></u>
Answer:
a)R= sqrt( wt³/12wt)
b)R=sqrt(tw³/12wt)
c)R= sqrt ( wt³/12xcos45xwt)
Explanation:
Thickness = t
Width = w
Length od diagonal =sqrt (t² +w²)
Area of raectangle = A= tW
Radius of gyration= r= sqrt( I/A)
a)
Moment of inertia in the direction of thickness I = w t³/12
R= sqrt( wt³/12wt)
b)
Moment of inertia in the direction of width I = t w³/12
R=sqrt(tw³/12wt)
c)
Moment of inertia in the direction of diagonal I= (w t³/12)cos 45=( wt³/12)x 1/sqrt (2)
R= sqrt ( wt³/12xcos45xwt)
Advantages include low costs and minimal labor.Water stays in the root zone, and foliage stays dry. Drawbacks to surface irrigation include potential overwatering and wasteful runoff.