Question: if you could show the actual code that would be great :) Page 1 > of 2 CS 250 Program 04 Due: Monday, February 24th
Page 1 > of 2 CS 250 Program 04 Due: Monday, February 24th Main topics Basic String Methods Boolean Expressions else Statements Program Specification: Write a Java program that does the following Prompts the war to input stly four characters, which is valid double literalls Jans Gets whatever the wer enters and stores it into a string variable, using the the Scanner's sext..) method through Determine if the input string is indeed a valid for criter double literal 1. Consists of exactly the following characters decimal point), and 2. Either the or character may appear all the first character 3. The (decimal point) character must appear eetly and 4. All other characters must be the through characters Displays this determination to the w inteable report format. Gracting Perlone Indicator wality and develo loop op Porquent Erney Sample run(s): Pl e ter & Valid C4 character) double literal 1234 12345 is not a valid (4 character) double lateral Pleasester 1-23.45 16 valid valid character) double literal1-334 character d e literal Peester vad character d e lice - ater
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
