如果用你的专业送上新春祝福,会是什么样的?
package com.company;
import java.util.Random;
public class NewYearGreeting { public static void main(String[] args) { String[] greetings={'May this new year bring you much joy and happiness.','Happy New Year!', 'May every day of the year be filled with sunshine and laughter.','Season's greetings and best wishes for the New Year.'}; String greeting= greetings[new Random().nextInt(greetings.length-1)]; System.out.println(greeting);
}
}
赞3
踩0