Save IntelliJ project as .java

0

I started a week of programming, but I'm not in the IT field and it's what's making learning difficult for me. I would like to know if you have any help in this first obstacle.

The teacher asked to create a project that would allow us to write "Hello World", this I was able to do. However, he requested to save as .java and upload it in mystat (course program to load the homework), then I do not know how to do it. Can someone give me a light, please?

    
asked by anonymous 08.05.2017 / 19:39

1 answer

0

Contextualization

Java is an object-oriented language.

An object-oriented language is basically classes and interfaces .

Every class (and interface) in Java is a text file with the extension .java .

The file you have implemented (wrote) the requested logic in the exercise is a Java class that should have the extension .java .

Save as .java

If you wrote your code and it worked for sure you already saved it as .java .

What you need to do is get to the folder of your project through Windows Explorer and find the class you created and wrote your code. This file can have any name but should have the extension .java .

It's this class that your teacher wants you to upload.

    
08.05.2017 / 20:04