public static void main(String[ ] args) { // variables declared here System.out.println( Please enter your first name ); firstName = sc.next(); System.out.println( Please enter your family name ); } System.out.println( All information supplied is confidential ); System.out.println( No personal details will be shared ); {}{} displayMessage( )privatestaticvoid displayMessage( ); // more code here