Update QuestionFactory.java

main
hnu202326010223 4 months ago
parent 208a482e1a
commit 491ff39ac3

@ -1,22 +1,21 @@
<<<<<<< HEAD
package factory;
/**
使
*
* 使
*
*/
public class QuestionFactory {
/**
@param type
@return
@throws IllegalArgumentException
*
* @param type
* @return
* @throws IllegalArgumentException
*/
public static QuestionGenerator createGenerator(String type) {
switch (type) {
case "小学":
return new generator.PrimaryQuestionGenerator();
return new generator.ElementaryQuestionGenerator();
case "初中":
return new generator.JuniorQuestionGenerator();
case "高中":
@ -25,10 +24,4 @@ public class QuestionFactory {
throw new IllegalArgumentException("不支持的题目类型: " + type);
}
}
=======
package main.java.factory;
public class QuestionFactory {
>>>>>>> 93d8b771666e4fb2ee7477c19dcf6f4fb1eec045
}
}
Loading…
Cancel
Save