在线工具 在线编程 在线白板 在线工具 在线编程 在线白板

编写一个方法lyrics.当调用时打印输出一首歌的歌词,该方法没有任何参数和返回值

请问下,编写一个方法lyrics.当调用时打印输出一首歌的歌词,该方法没有任何参数和返回值
最新回答
雨映燕帘

2024-09-30 09:11:25

//----------------------------------------------------------------------------------------------
//prints out the lyrics of a song.
//----------------------------------------------------------------------------------------------
public void lyrics()
{
System.out.println("巴拉巴拉巴拉巴拉")

}