Jump to content
43oh

Looking for energia with java like commands


Recommended Posts

Hello All,

Quick question here.. wondering if anyone knows of a good library for java like commands in regards to strings. it would be very helpful to me to use commands like .length and other string related commands. I'm really hoping someone knows one off the top of their head. 

 

Thanks in advance,

Jbean :smile:  :smile:  :smile:  :grin:  :thumbup:

Link to post
Share on other sites

You can't use Java objects. There are two languages that you can use to do the stuff you want to do:

C

C++

When using C, you need to write things like

#include <string.h>
char bla[20] = "hello world";
int length = strlen(bla);

If you want to use C++, you can alternatively use the string objects

#include <string>
using namespace std;
string bla = "hello world";
int length = bla.length();
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...