In your "count spaces method" before the for loop, you want to declare an int variable (let's call it spc)
then, each time you find that charat, spc++.
also, the string must be declared in the main method, not the spaces count method.
The actual code:
public class CountSpaces{
public static void main(String[] args){
String instring = "(your quote here)";
int spaces = calculateSpaces(instring);
System.out.println("The number of spaces is " + spaces);
}
public static int calculateSpaces(String in){
int spc = 0;
for(int i= 0; i<in.length; i++){
if(in.charAt(i)== ' '){
spc++;
}
}
return spc;
}
}
that should be it. If you have any questions, feel free to reach out.
Answer:
True
Explanation:
Readability is how easy it is to read words, phrases, blocks of copy such as a book, a web page or an article. Legibility is a measure of how easy it is to distinguish one letter from another in a particular typeface.
Your welcome
Enviromental technology can be listed from simple objects to a large company.
1.Enviromental Technology:
Wood farming (its not that of a technology, but the amount technology to do this is large)
2.Coal Mining
3. Water damps (for making electricity)
alright.. good:
1. other objects can be created thanks to this
2. The final product can be used as a source of energy.
3. Electricity!!
the bad.
1. mass-cutting trees... :(
2. Often makes no to some pollution, can have pernament effect on the workers life (respiratory problems etc.)
3. Can cause floods..
Answer:
Share.
Explanation:
Go to the Share button in the top right corner of the doc, and click it. Then type the email adress of who you want to work on it. (make sure the symbol to the right of the email is a little pencil Icon)
Answer:
the first conputer brought in nepal was IBM 1401