• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java to evalute a string ?  RSS feed

 
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Java, can we evaluate a string like Javascript ? for example,


 
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not as far as I know.
 
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java does have a scripting API (javax.script) which would let you do this. See: http://docs.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!