Page 1 of 1

Write a Java program that declare 3 variables. The first variable is a string contains "This is my first program.". The

Posted: Sat Feb 19, 2022 3:23 pm
by answerhappygod
Write A Java Program That Declare 3 Variables The First Variable Is A String Contains This Is My First Program The 1
Write A Java Program That Declare 3 Variables The First Variable Is A String Contains This Is My First Program The 1 (50.61 KiB) Viewed 30 times
Write a Java program that declare 3 variables. The first variable is a string contains "This is my first program.". The second variable is an integer stores the string length. The third variable is a boolean stores the result after checking if the string equals “my first program." or not. Print the result using Print Statement. Output: This is my first program. The length of the string = 25 Does the string equal to "my first program."? false