Skip to content

Commit

Permalink
update array_enumeration_example()
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris-Rasin committed Jun 21, 2019
1 parent fe2e493 commit 8306a98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/main.cpp
Expand Up @@ -64,19 +64,19 @@ void array_example()

void array_enumeration_example()
{
// object array
// object array: ref<java::lang::String[]>

for (auto&& i : java::util::Locale::getISOLanguages()->elements())
{
auto length = i->length();
i = java::lang::String::new_object();
}

// primitive array
// primitive array: ref<jbyte[]>

for (auto&& i : java::lang::System::getProperty("java.version")->getBytes()->elements())
{
i = 'A';
i = 5;
}
}

Expand Down

0 comments on commit 8306a98

Please sign in to comment.