This is a program which takes the pseudo code instructions and create a executable java code. It is still in development now it is able to write for loop, if else and elsif condition and print statements.
ex:
enter the file nametest3
enter the code
for 5 times
if 'for1 eq 2'
print ' if condition working'
End if
elif 'for1 eq 3'
print 'else if is working'
End else if
else
print 'else is Working'
End else
End for
End
output code:
public class test3 {
public static void main(String[] args)
{
for( int D=0;D<5;D++)
{
if (D == 2)
{
System.out.println(" if condition working");
}
else if (D == 3)
{
System.out.println("else if is working");
}
else
{
System.out.println("else is Working");
}
}
}
}
#For Function
enter the file name test3
enter the code
function hello
return type void
Inputs with data type //you can leave it empty or write the parameters
print 'hello i am a function'
End function
create object //creates object of same class if not mentioned
enter the object name obj1
call hello
object name obj1
parameters
End
#Output public class test3 {
public static void main(String[] args)
{
test3 obj1= new test3();
obj1.hello();
}
public void hello()
{
System.out.println("hello i am a function");
}
}