我想在android应用程序中添加下拉列表.任何人都可以告诉我,怎么做?
这是我的代码,
public static String set_x_dates()
{
int noRecords = GlobalData.getNoRecords();
int n;
String date = "";
if (noRecords <= 10)
for (n = 0; n < noRecords; n++)
date += Dates[n] + "-" + Month[n] + "|";
else {
for (n = 0; n < noRecords; n++) {
int gap = (int) (noRecords / 10);
date += Dates[n] + "-" + Month[n] + "|";
n++;
if (n != noRecords)
for (; gap > 0; gap--)
date += "|";
}
} …Run Code Online (Sandbox Code Playgroud) 我想,以取代所有llpp与" < "字符和所有llqq与" > "从在Java代码下面的字符串,
llpphtmlllqq
llppheadllqqllpptitlellqqCompany Name-Companyllpp/titlellqqllpp/headllqq
llppbodyllqqSome text herellpp/bodyllqq
llpp/htmlllqq
Run Code Online (Sandbox Code Playgroud)
我有上面的字符串,我希望它是
<html>
<head><title>Company Name-Company</title></head>
<body>Some text here</body>
</html>
Run Code Online (Sandbox Code Playgroud)
请帮我