0

Why doesn't this code work?

import java.util.Scanner; { public static void main(String[] args) { Scanner myVar=new Scanner(System.in); System.out.println(myVar.nextLine()); } }

25th May 2020, 4:53 AM
Not Fabian
Not Fabian - avatar
7 ответов
+ 3
You can't run java code in javascript, there are different languages.
25th May 2020, 4:55 AM
Calviղ
Calviղ - avatar
+ 1
Ok
25th May 2020, 4:57 AM
Not Fabian
Not Fabian - avatar
+ 1
O,loll
25th May 2020, 5:40 AM
Not Fabian
Not Fabian - avatar
0
Thx
25th May 2020, 1:54 PM
Not Fabian
Not Fabian - avatar