Learning phase output target



Package
com.cheng; Import java.util.Random; Import java.util.Scanner; // three stages of learning objectives public class LearingAims { static Scanner SC = new new Scanner (the System.in); // There are three stages of learning public learnStage the Stage; // Ll: big data engineer // L2 of; large data mining engineer // L3: large data architect public static void the doWhat (the Stage learnStage) { // the Stage = Me (the Stage) new new the Random () the Next. (. 3); Switch (learnStage) { Case Ll: System.out.println ( "target output of the first phase of the study:" ); System.out.println ( "big data development engineer" ); BREAK ; Case L2 of: System.out.println ( "output of the second phase of the study target: " ); System.out.println ( " big data mining engineers " ); BREAK ; Case L3: System.out.println ( " the output of the third stage of the learning targets " ); System.out.println ( " big data architect " ); BREAK ; } } public static void main(String[] args) { System.out.println ( "Please select the target content of several phases: (Ll, L2 of, L3)" ); String the Choose = sc.next (); IF ( "Ll" .equalsIgnoreCase (the Choose)) { the doWhat (Stage.L1); } the else IF ( "L2 of" .equalsIgnoreCase (the Choose)) { the doWhat (Stage.L2); } the else IF ( "L3" .equalsIgnoreCase (the Choose)) { the doWhat (Stage.L3); } the else { System.out.println ( "input error" ); } } }



Enum class

the package of comcheng; 

, public  the ENUM Stage { 

    as the L1, L2, the proprioceptive, to an L3; 
}

 

 

Guess you like

Origin www.cnblogs.com/bichen-01/p/11271993.html