0

IntellIJ Idea 2019

In my java file:

package com.java.testproject.java.TestProjectJava.leetcode;

public class TwoSum {

    public TwoSum() {

    }
}

Here client code:

public class Main {
    public static void main(String[] args) {
        System.out.println("Java version: " + System.getProperty("java.version"));
        System.out.println("Current date: " + new Date());
        System.out.println();

        new TwoSum();
}

But When compile I get error:

enter image description here

what is wrong with my code?

a_subscriber
  • 8,977
  • 15
  • 60
  • 141

0 Answers0