#Hi, am new

1 messages · Page 1 of 1 (latest)

royal notch
#

So this is my code: ```java
// Hi
public class Learning {

public static void main(String[] args) {
    
    int myInt = 7;


    System.out.println(myInt);

}

}

And even without `//Hi` it still has this error: `The declared package "" does not match the expected package` im on Visual Studio Code.
white oakBOT
#

<@&987246399047479336> please have a look, thanks.

white oakBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

verbal parcel
#

you need to type package "name of the folder ur file is located in";

nocturne night
#

also wouldnt recommend Visual Studio Code to beginner, try IntelliJ instead

#

or Eclipse

#

but I would def. recommend IntellIJ

nocturne night
#

Visual Studio Code is just a fancy text editor and IntelliJ is an IDE for developing Java applications

royal notch
white oakBOT
nocturne night
#

you need understanding of java to setup VSC correctly and even need plugins

verbal parcel
#

its a single statement, dont create a new scoup for that

royal notch
#

SyntaxError: invalid syntax even though VS code is showing no problems

#

AAHHH

#

bro i just wanna make a shity PZ copy

mystic thorn
#

package statament does not have brackets in it normally

#

( also VSC is not a really good program to spot error's )

royal notch
#

fml why is this so dam difficult

mystic thorn
#

cause your making normal learning mistakes, everyone has them

royal notch
#

whats wrong with having 1 editor that works for everything

mystic thorn
#

vsc mostly checks on syntax only

royal notch
#

whats an IED

#

hopefully not a boom boom one

nocturne night
#

IDE, Integrated development environment

woven dove
royal notch
#

family friends have already seen many of those

royal notch
woven dove
#

i too had a lot of troubnle finding out packages in vscode

mystic thorn
#

i'd suggest u don't try to wander of to far from the problem, and try to fix the error's u wrote. Once u get those gone, it will be easier

royal notch
#

i should not have jumped from python to this

mystic thorn
#

remove the bracket from the package line and place a ;

#

remove the last bracket

royal notch
#

idek how to properly code python

woven dove
#

all gud sir

#

every language teaches u same basics abut programming

#

java just uses core programming basics more i.e OOPS

mystic thorn
#

programming languages are like dialects

woven dove
woven dove
royal notch
#

bro, im just doing my GCSEs

woven dove
#

u dont know c++, u dont know any other too

royal notch
#

idk anything

woven dove
#

just ignore

royal notch
#

what do i tick?

woven dove
#

next

royal notch
#

thx

woven dove
#

see

#

if u have any basic doubt..

#

i can clear it

#

coz i am too noob

royal notch
#

ok thx

woven dove
#

so woud like to know abut ur errors to check my skills too

#

🙂

#

so bye sir

royal notch