#code not compiling

1 messages ยท Page 1 of 1 (latest)

shadow igloo
#

what am i doing wrong hhh

astral moatBOT
#

โŒ› This post has been reserved for your question.

Hey @shadow igloo! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

unreal edge
#

you copied the a: and b: inlay hints into source code

#

remove those

shadow igloo
#

it still doesnt run

#

@unreal edge sorry for the ping

unreal edge
#

you aren't calling new Point
you had the parentheses before, why did you remove them

#

you also had a ; after y=b

#

why are you removing code that works?

#

and make sure you've saved

shadow igloo
#

now?

unreal edge
#

you have another missing ;

shadow igloo
#

rip

#

and now

unreal edge
#

have you saved?

#

and are you even running this file

shadow igloo
shadow igloo
#

this is what it says

low prism
unreal edge
#

your errors point to Point.java and Main.java, which are clearly both not this file

shadow igloo
shadow igloo
unreal edge
#

you aren't running this file

shadow igloo
#

isnt this how u run the prog

stiff bridge
# shadow igloo

Read the error message. The problem is at Point.java 5th line. And you are using it on Main.java 11th line, thats what the error message is saying.

#

You probably missed another ; around Point.java 5th line...

shadow igloo
low prism
shadow igloo
#

I have a file named demonstration_21

stiff bridge
shadow igloo
long owl
#

right click run file ๐Ÿค”

#

or if u have java added to path variables then use ur terminal

astral moatBOT
#

๐Ÿ’ค Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

shadow igloo
#

amd it says the same thing

long owl
#

U didnt solve it till now?!

shadow igloo
stiff bridge
shadow igloo
stiff bridge
#

btw yesterday someone solved your problem:

shadow igloo
stiff bridge
#

Forget vscode, its a big ๐Ÿ’ฉ

#

use the terminal

shadow igloo
#

๐Ÿ˜ญ

shadow igloo
stiff bridge
#
  1. Rename your method because it's strange. It's not getting the points, it's setting them, or changing...
#
  1. use terminal
#

go to the folder that conatins your Demonstration_21.java file

#

right click - open terminal here

stiff bridge
#

javac Demonstration_21.java

#

then

#

java Demonstration_21

stiff bridge
# shadow igloo GetPoint?

Yes, your method is changing those points based on what values you give to the method, not getting them.

#

Sounds strange... Change it to setPoints

shadow igloo
#

am i blind or is there no open terminal ๐Ÿ’€

stiff bridge
#

dont right click on the file

#

right click in the file browser somewhere