#what does this mean??? i'm new and i have no idea

30 messages · Page 1 of 1 (latest)

kindred crater
#

Hi, i'm doing a lesson in Java for school.

I'm taking a codehs course and it keeps saying these things that I have no idea what it means.

Help would be appreciated 🙂

worthy copperBOT
#

This post has been reserved for your question.

Hey @kindred crater! 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.

languid pond
#

Needs imports. Also, is this class teaching inheritance without explaining imports? It might be a bit advanced if you’re just starting out. Might be worth going back and getting a solid standing with the fundamentals. A lot of courses are out there that let you do practice problems after teaching you something. One that I like is sololearn, but you’re limited in how many problems you can do without a subscription

kindred crater
#

what are imports

kindred crater
#

Like, I was supposed to use booleans and logical statements to determine if something is true, then it prints it out

languid pond
kindred crater
dense osprey
#

say somewhere else in your project you have a square root function sqrt(int x)
but when you're coding in your main class if you type sqrt(int x) you wont be able to access that function because your code doesn't know about it

#

you would need to import <path to the class that contains desired function>
<classname>.sqrt(int x)

languid pond
kindred crater
#

fore xampl;e, u learn printing

#

then smething like variables

#

then booleans

#

etc

#

it dosent show everyhting at once

kindred crater
#

i was wondering if there was a way to solve it without using imports, just booleans and logical operators

#

and if statements if those are needed

languid pond
#

Yes.

#

Where did console program come from?

#

Did you code that?

kindred crater
#

basically they write all of the "class" and public run statements for you

#

u just gotta write the code that acutlaly functions

languid pond
#

I don’t think I can do much without giving you the answer since you haven’t been taught enough basics to answer this question.

Id recommend some supplemental training. Sololearn is a good free option.