java输出爱心和黄森凤的姓名代码
时间: 2023-07-31 16:06:26 浏览: 85
输出爱心的Java代码:
```
public class Heart {
public static void main(String[] args) {
System.out.println(" ♥♥");
System.out.println(" ♥ ♥");
System.out.println(" ♥ ♥");
System.out.println("♥ ♥");
System.out.println(" ♥ ♥");
System.out.println(" ♥ ♥");
System.out.println(" ♥♥");
}
}
```
输出黄森凤姓名的Java代码:
```
public class Name {
public static void main(String[] args) {
System.out.println("黄");
System.out.println("森");
System.out.println("凤");
}
}
```
阅读全文