import java.util.Scanner;
public class U2_L3_Activity_Four {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter a sentence.");
String sent = scan.nextLine();
int count = 0;
for (int i = 0; i < sent.length(); i++){
char c = sent.charAt(i);
if (c != ' '){
count++;
}
else{
break;
}
}
System.out.println("The first word is " + count +" letters long");
}
}
We check to see when the first space occurs in our string and we add one to our count variable for every letter before that. I hope this helps!
Short answer yes. kinda long answer people can scan the photo and easily see or they can just look up the same image
False- python is an example of a high level language. Other high levels are c++, PHP, and Java
There are 6 octects ( 8 bit numbers ) in a MAC address, so there's 256^6 possible addresses.
The answer to your question is true.