Save Intellij Project as . java

Asked

Viewed 505 times

0

I started a week ago a programming course, but I’m not in the IT area and the like that is making my learning difficult. I wonder if there’s any way you could help me with this first obstacle of mine.

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

  • The @Igor response explains well, but keep in mind that the file ". java" will have the same name as your Class, so you can search your computer for that name if you are having difficulty finding the class file. java

1 answer

0

Contextualization

Java is a language object-oriented.

An object-oriented language is composed of classes and interfaces basically.

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

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


Save as .java

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

What you need to do is get to your project folder from Windows Explorer and find the class you created and wrote your code in. This file may have any name but must have the extension .java.

This is the class your teacher wants you to upload.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.