J-- (J Dash Dash) is an interpreted, non-object-oriented programming language inspired by the C++ language and the very famous Java.
Java is one of the most used languages in the world of developers, however it is the source of many problems.
J-- aims to offer a mix between C++ and Java to allow you to have the problems of Java and the advantages of C++ in addition, it starts from Java to look like a special C++.
print
in output (2 ways)auto
like in C++import
file (to import functions, global variables etc.)namespaces
/packages
protected
, private
and public
import MODULE_NAME;
like String
, Boolean
,
Integer
or Double
for examplestd
added to files when you download it"Hello World V1 \n" );println ("Hi" );
import String;import Boolean;string msg ="hi" ;println (msg.getIndexFromChar("h" ));int a = msg.getIndexFromChar("h" );println (a);boolean f =Boolean .fromInt(0 );boolean v =Boolean .fromInt(1 );println (f", " v); // println(f ", " v); == println(f + ", " + v);
// main.jddimport "import.jdd" as"main.jdd" ;println (a); mainFunc; // import.jddprotected int a ["main.jdd" ] =10 ;public void mainFunc() {println ("hello everyone!" ); }