时间验证 - 以AM或PM 24小时格式显示时间

问题描述:

我希望以10:30 AM或PM格式显示时间我希望java代码帮助我

I want to display time in the format 10:30 AM or PM I want java code help me

然后请努力阅读文档:

教程: https://docs.oracle.com/javase /tutorial/datetime/iso/datetime.html [ ^ ]

参考:时间(Java平台SE 7) [ ^ ]。
Then please make an effort to read the documentation first:
Tutorial: https://docs.oracle.com/javase/tutorial/datetime/iso/datetime.html[^]
Reference: Time (Java Platform SE 7 )[^].