- Main Java X 1 Class Main 2 Public Static Void Main String Args 3 System Out Println Hello World 4 5 Co 1 (20.96 KiB) Viewed 41 times
Main.java x 1 class Main { 2 ▼ public static void main(String[] args) { 3 System.out.println("Hello world!"); 4 5 } } Co
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Main.java x 1 class Main { 2 ▼ public static void main(String[] args) { 3 System.out.println("Hello world!"); 4 5 } } Co
Main.java x 1 class Main { 2 ▼ public static void main(String[] args) { 3 System.out.println("Hello world!"); 4 5 } } Console Shell Instructions Lab Assignment 10 Write a program to take a sentence as input form the console. Count the number of characters in the sentence and print the total count of characters. Use a for-loop or while-loop to count the characters.