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:
Ok
Explanation:
I will check him out, do you need anything else though?
public colleges are cheaper for in-state residents
Answer:
The answer is Digital divide.
Explanation:
Digital divide describes the differences between people with access to the internet, computers or modern ICT or Information Communication Technology and the people that do not.
The effect of digital divide is described below:
- It affects economic growth. Due to a lack of access to technology in some areas, they experience low economic growth and cannot be compared to areas with easy access to technology.
- It affects education. Students with easy internet access and other technological facilities always have information at the tip of their fingers compared with students who only go to the libraries or listen to the radio to get information.
- It affects Political participation. Access to technology increases the citizen's participation in politics while it has a negative effect on places with no access to technology.
Blind Carbon Copy
For emails. It is used to send a copy of the email to somebody without the original person receiving it knowing that you sent a copy.