当前位置: 技术问答>java相关
“不合法的转义字符”的错误!
来源: 互联网 发布时间:2015-08-27
本文导语: 一个字符串数组 String[] De= { "021299","05250","11201", "06182","082498","092697", "101196","111295","012294", "021293" ...
一个字符串数组
String[] De= {
"021299","05250","11201",
"06182","082498","092697",
"101196","111295","012294",
"021293"
};
程序目的:
将字符串中的时间格式转化成“1999年12月12日”显示出来?
程序源代码;
public class Data
{
public static void main(String[]args)
{
String[] temp=new String[10];
String[] temp1=new String[10];
String[] De= {
"021299","05250","11201",
"06182","082498","092697",
"101196","111295","012294",
"021293"
};
for (int i=1 ;i
String[] De= {
"021299","05250","11201",
"06182","082498","092697",
"101196","111295","012294",
"021293"
};
程序目的:
将字符串中的时间格式转化成“1999年12月12日”显示出来?
程序源代码;
public class Data
{
public static void main(String[]args)
{
String[] temp=new String[10];
String[] temp1=new String[10];
String[] De= {
"021299","05250","11201",
"06182","082498","092697",
"101196","111295","012294",
"021293"
};
for (int i=1 ;i