如何在Java中把下面一个字符串string1,赋值给string变量tmp,请给出一段代码?
string1==<ahref="/mesh/1000073">Anthropology,Education,SociologyandSocialPhenomenaCat...
string1=
=
<a href="/mesh/1000073">Anthropology, Education, Sociology and Social Phenomena Category</a>
<ul>
<a href="/mesh/68012942">Social Sciences</a>
<ul>
<a href="/mesh/68000883">Anthropology</a>
<ul>
<a href="/mesh/68000884">Anthropology, Cultural</a>
<ul>
<a href="/mesh/68003469">Culture</a>
<ul>
<b>Acculturation</b>
</ul>
</ul>
</ul>
</ul>
</ul></b></ul></ul></ul></ul></ul></ul></ul></p></div></div> 展开
=
<a href="/mesh/1000073">Anthropology, Education, Sociology and Social Phenomena Category</a>
<ul>
<a href="/mesh/68012942">Social Sciences</a>
<ul>
<a href="/mesh/68000883">Anthropology</a>
<ul>
<a href="/mesh/68000884">Anthropology, Cultural</a>
<ul>
<a href="/mesh/68003469">Culture</a>
<ul>
<b>Acculturation</b>
</ul>
</ul>
</ul>
</ul>
</ul></b></ul></ul></ul></ul></ul></ul></ul></p></div></div> 展开
2个回答
展开全部
直接将string1付给tmp不就行啦 String tmp = string1;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询