#Android & Java
#Git Tutorial
#Android & Java
#Git Tutorial
| class Main { | |
| public static void main(String[] args) { | |
| Person person = new Person(); // will get error as defautl empty constructor is not given | |
| } | |
| } | |
| class Person { | |
| String firstName; |
| class ReferencePreservation { | |
| public static void main(String[] args) { | |
| B b = new B(); | |
| b.x = 10; | |
| System.out.println("Before method call b.x " + b.x); | |
| A a = new A(); | |
| a.method(b); |
| var inputObject = { 0: 'a', 1: 'b', 2: 'c' }; | |
| var values = []; | |
| Object.keys(inputObject).forEach(function(key) { | |
| values.push(inputObject[key]); | |
| return values; | |
| }); | |
| console.log(values); |
jar cvfe MyJarName.jar MyMainClass *.class
jar cvfe MyJarName.jar MyMainClass *.*| // Always ensure Java Class Name is same as File Name in JavaFX. Otherwise give error in running | |
| import javafx.application.Application; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.layout.StackPane; | |
| import javafx.stage.Stage; |
September 9, 2015
Editors: