Consider the following Java statement:
stringbuilder.append("some string");
Where stringbuilder
is a StringBuilder
object.
Is it possible to select the expression stringbuilder.append("some string")
(without the ;
) and ask IntelliJ to what type this expression evaluates?
Yes it is. Please look at the InteliJ Documentation
Pay attention to "Evaluating arbitrary expressions" section.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.