开发者

I want to take a string through console and store it in a character array [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help cent开发者_开发知识库er. Closed 11 years ago.

I am trying to convert a string to character array.


You mean like this?

String text = "foo";
char[] chars = text.toCharArray();

It's not clear what this has to do with the console (as per your title). Please clarify if this isn't what you're after.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜