#why is it not letting me change the string to lowercase?

46 messages · Page 1 of 1 (latest)

astral flower
#

im struggling to convert the string to all lowercase

kindred matrixBOT
#

This post has been reserved for your question.

Hey @astral flower! 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.

south arrow
#

let is not how you create variables in java

#

that's for js

astral flower
#

🥴

south arrow
#

java requires the type, like you have in String day; or Scanner myObj = ...;

astral flower
#

one sec ill try to change it

#

idk why the import sends an error, yesterday it worked

south arrow
#

it isn't

#

try reading the error

astral flower
#

Description Resource Path Location Type
Must declare a named package because this compilation unit is associated to the named module 'main' Main.java

#

idk what it means with it

#

its my second day studying java SkullPixel

south arrow
#

it wants a package declaration

kindred matrixBOT
astral flower
south arrow
#

try checking out what packages are there first

astral flower
#

?

south arrow
#

what about it

astral flower
#

package com.java.util.Scanner;
import java.util.Scanner;

#

it worked now that I used this thing

south arrow
#

that's not the right package

astral flower
#

chatgpt explained it super detailed

south arrow
#

clearly not enough ig

south arrow
#

what do you think the package of Scanner is

astral flower
astral flower
south arrow
#

that isn't what i asked

#

what package is Scanner in

astral flower
#

idk

south arrow
#

what resources are you using for java?

#

chatgpt is not a valid resource

#

it will and has lied to you

kindred matrixBOT
astral flower
south arrow
#

yes

#

and multiple others

#

chat bots are not one of them

astral flower
#

I start with this one?

south arrow
#

sure