#what's this problem? why does it happen? and how did I "solve" it?

44 messages · Page 1 of 1 (latest)

woven cradleBOT
#

This post has been reserved for your question.

Hey @plush crescent! 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.

livid breach
#

the problem is stated in the error, you tried to use something that doesn't exist. you solved it by making that thing exist.

plush crescent
livid breach
#

it's never defined in the first screenshot

#

java doesn't know what "Student" means

#

then you told it what "Student" means

plush crescent
livid breach
#

this is at the most basic level of logic, you can only use things that exist

livid breach
plush crescent
livid breach
#

it.. it defined Student

#

that's what that's doing

plush crescent
livid breach
#

what time is it for you

plush crescent
#

ok is there another way to define it?

livid breach
#

infinite ways

plush crescent
plush crescent
livid breach
#

because.. this is just not something that needs explaining, it's just how the real world works, it's how natural language works, it's how math works, it's how science works, etc.

#

you can't use things that don't exist

plush crescent
livid breach
#

it isn't

#

you've used this logic for however long youve been alive

livid breach
#

really think about it

#

don't google anything there

plush crescent
#

bruh

livid breach
#

can you give me a xyzzy?

plush crescent
#

I'm asking "how", not "why". don't go all philosophical on me'

livid breach
#

im not

#

answer the question

plush crescent
#

you are

livid breach
#

can you give me a xyzzy

plush crescent
#

here it is

livid breach
#

yeah no

#

you can't

#

because you weren't told what it was (unless you already knew, i probably shouldve just used random letters)

plush crescent
#

that's enough out of you

livid breach
#

you're literally asking how a dictionary works

#

you tell java what something means, java can now use it

#

can you give me a qewfdv? no, because it doesn't exist
can java use Student? no, because it doesn't exist, at least in the first scenario