Answer:
print("hello world")
Explanation:
a hello world program is simply a program that prints out hello world.
for this you would need to remember to have the same number of brackets on each side and to write print. Also remember when printing to include speech marks.
<span>buffer is what your looking for my friend made this it should help https://quizlet.com/20507517/ch-4-operating-systems-and-file-management-flash-cards/</span>
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!
Answer:
Can i have a points? Tysmm
Eased the mobilization and transportation of troops