问题标签 [charsequence]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
47 浏览

java - Is this sending the right value back? Not working in test Java

SO i made a CharSequence[] array with all the two consecutive uppercase letters. Why is this code not returning the correct values?

and in the main string, this syntax:

now everything else in the three classes work. This is the only problem and it seems to get stuck in the else. Why is it not testing all of the array char's then returning true or not? It gets stuck in a loop if i enter: AApassword.1 , which fits all the other criteria, except the two consecutive capitals. So then i enter: aApassword.1 , which should fit ALL of the criteria, but it still prints out the else statement, instead of breaking the while loop. Can anyone help me?

0 投票
2 回答
6613 浏览

android - android中TextView.getText()的返回类型是什么?

为什么TextView.getText()返回 aCharSequence而不是 a String
(String是CharSequence的实现)

0 投票
1 回答
92 浏览

android - How can I use " getCharSequence " in this code?

I have this code for sending a text is selected from first textView to second textView with clicking on a button :

but when I press button nothing send to txt2 and txt2 is empty .... why ??

I think txt2.setText(stringYouExtracted) is wrong but I am very biginner and I can't fix it ????

Is public CharSequence getCharSequence (String key) a solution ?? if yes help me because I don't know how can I use it ????

0 投票
1 回答
203 浏览

r - 为 Shiny 提取列名序列

我正在构建一个 RShiny 应用程序,并试图以有效的方式生成 checkboxGroupInput 选项。

我想创建一个带有每个奇数列名的向量,以避免执行以下操作来生成用户选择的潜在选项:

有没有办法用像 seq 或 letters 这样的函数来提取列名?理想情况下,它会是这样的,虽然下面当然不起作用:

然后我只想将该向量插入复选框字段。

谢谢你的帮助!

0 投票
1 回答
820 浏览

android - 没有美元符号的Android EditText货币输入样式

我想要没有美元符号的钱输入框。有一个代码可以很好地处理美元

我尝试了所有方法,但无法删除 $ sysmbol。如何删除此代码?

0 投票
1 回答
22 浏览

java - 通过枚举 XOR new type[] + enumeration 初始化数组有什么区别吗?

与数组的初始化有什么区别吗?

0 投票
1 回答
717 浏览

java - 如何在 Java 中将重音字符转换为 HTML 符号?

0 投票
3 回答
338 浏览

java - 将 CharBuffer 和 StringBuilder 转换为超接口

StringBuilder 和 CharBuffer 都实现了 CharSequence 和 Appendable 接口。声明超接口时

然后我可以将 CharBuffer 转换为 IAppendableCharSequence,但不能转换为 StringBuilder:

这是为什么?谢谢!

0 投票
3 回答
593 浏览

java - 实例化接口 CharSequence

if CharSequenceis an interface 那么,在上面的例子中我们不是在实例化一个接口吗?

0 投票
3 回答
291 浏览

java - 何时在 String.subString 上使用 String.subSequence 方法?

我知道 subSequence 返回一个只读的 charSequence。此外,String 类实现了 CharSequence。subString 返回一个字符串。

但是,在子序列和子字符串中,何时以及更喜欢哪一个