Hello I'm new to programming and I'm having a trouble understanding my assignment.
I
know that this might be a really simple problem for you guys and I'm sorry for that. As of
now, we've only discussed the fundamentals of programming, including methods. Is it
possible that he's just asking me to write a method that will perform the given instructions,
and if so, is my code correct?
Instruction: Write a method oriented program to find if the Input string is a valid string base
on the rules below.
1. a string must have at least eight characters
2. a string consists of letters and numbers (whole numbers) only.
3. a string must contain at least three digits.
Sample input/output1: String Input: ben65431 String is valid: ben65431
Sample input/output2: String input: Jack12 String is invalid
My Answer:
Scanner scan = new Scanner([Link]);
String loud = "jack687504";
[Link]("Enter Input:");
String quiet = [Link]();
if([Link](loud)){
[Link]("Valid String Input:" + loud);
}else{
[Link]("Invalid String Input");
}
}
}