Private
Public Access
2
0

examples/java: Update, indent and add [Interesting] tags to examples

Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Petre Eftime
2015-09-30 13:21:23 +03:00
committed by Brendan Le Foll
parent 013c04c7b9
commit 0e44dfac44
5 changed files with 133 additions and 108 deletions

View File

@@ -1,6 +1,8 @@
/*
* Author: Alexander Komarov <alexander.komarov@intel.com>
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Copyright (c) 2014 Intel Corporation.
* Author: Petre Eftime <petre.p.eftime@intel.com>
* Copyright (c) 2015 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -22,6 +24,9 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
//! [Interesting]
import mraa.mraa;
public class Example {
static {
try {
@@ -34,8 +39,11 @@ public class Example {
}
}
public static void main(String argv[]) {
mraa.mraa.init();
System.out.println(mraa.mraa.getVersion());
String board = mraa.getPlatformName();
String version = mraa.getVersion();
System.out.println("hello mraa");
System.out.println(String.format("Version: %s", version));
System.out.println(String.format("Running on %s", board));
};
}
;
//! [Interesting]