A virus detection program is used to detect the signature (i.e. identification code) of a known virus. The signature consists of three characters : d i e
Assuming that the variables have been declared and the three characters have been captured in the variables first_char, second_char and third_char respectively, write the Java code segment to detect the existence of the virus and display the appropriate message “Virus found” or “No virus found”.
Assuming that the variables have been declared and the three characters have been captured in the variables first_char, second_char and third_char respectively, write the Java code segment to detect the existence of the virus and display the appropriate message “Virus found” or “No virus found”.