CodeX-API icon indicating copy to clipboard operation
CodeX-API copied to clipboard

Some of the programs are not getting proper output.

Open itsabishiek opened this issue 2 years ago • 4 comments

I've tried many programs, only simple programs are getting executed, but programs like data structures, linkedlist, interfaces and many are not working.

itsabishiek avatar Oct 01 '23 16:10 itsabishiek

Can you please provide more details here, and the response you're getting + the expected response?

Jaagrav avatar Oct 01 '23 16:10 Jaagrav

Alright let me show you an example

interface printable{  
void print();  
}  
class A6 implements printable{  
public void print(){System.out.println("Hello");}  
  
public static void main(String args[]){  
A6 obj = new A6();  
obj.print();  
 }  
} 

The expected output is:

Hello

But I got here is error:

error: can't find main(String[]) method in class: printable

there are many problems are working in various languages

itsabishiek avatar Oct 01 '23 16:10 itsabishiek

But still this is not get executing though :(

itsabishiek avatar Oct 01 '23 17:10 itsabishiek

It won't the PR is still open 😅

I am trying to find a better way to fix this issue, the PR has what came first to my mind, but when I thought more about it, this PR will break things, will get back to you once I have an update!

Jaagrav avatar Oct 01 '23 17:10 Jaagrav