So I just started learning java in treehouse.com I've done the basics but when i try everything I've learnt there on the intellij idea ide nothing works.
I've already searched the internet trying to find a solution and I still cant find it, yea I've tried system.out but I've seen other people do it with just typing console too and if I try system.out on readline it doesn't work I'm literally confused.
I'm used to using the
console.println("Hello world!");
and
String name=console.readln("whats yo name: ");
and stuff like that on the treehouse workspace but everytime i try to do it on intellij idea it keeps getting an error.
it looks like this
package com.company;
import java.io.Console;
public class Main
{
public static void main(String[] args)
{
console.println("dada");
}
}