probably novice errors
###(extra context you dont actually need this)
hello hello, ive gotta do some 20~ programs for my computer class but since im still fairly new to it and only learnt it surface level to get through last year I dont really get the proper workings of the language (like ik the basic vocab and grammar but my understanding of participles and tenses suck)
sooo im gonna ask here if im facing any issues I legitimately do not know how to fix, even after a bit of google searching
I absolutely do not expect anyone to do my stuff for me but some help would be appreciated thanks
72 Replies
⌛ This post has been reserved for your question.
Hey @Piglet | NEED tone tags!!! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
im getting a "class name required" error on this even thought the class is named and follows the naming rules
im hoping that got embedded cuz it doesnt look like it did on phone
ohhh looks like it has to be a plain txt file so one sec
>:(
it got embedded for me
What exactly happens when running it
thanks
Can you please fix the formatting?
and that
I only get this

ok
Writing code on your phone is usually a really bad idea
ik but ive got a week to get this over w and I wont be home till half of it is done 😭😭
and your code is syntactically valid - including the class and the main
wow yay
How exactly are you running it with your phone?
im using this app https://play.google.com/store/apps/details?id=com.qamar.ide.java
JStudio - ide for java - Apps on Google Play
A java ide for developing android apps and java console programs.
yes but what exactly are you doing in the app?
typing the program 😭
yes but how you run it?
What is the name of the file?
theres a play button
t
just
t?this is better I hope?
yes
oh so it's
t.java?
Typically the class name should match the file name
try either naming the file Potential.java or name the class t
okay
THAT WORKED
man 😭😭😭😭😭😭
thanks
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
good to see
Please in the future, don't write code on your mobile for your own sanity
I know there are some apps that help with it - I wrote one by myself - but it's still painful
lol yeah no its a last resort
looks like theres some issue w the program itself now but ill see what I can do
very slay

wait wait dang it the arranging acc to potential bullshit didnt happen right ugh
I'm not sure what you mean by that
interesting choice of the testing sentence:GnuTrolling:
💤 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.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.I needed smth in caps that ended with ! or ? so seemed like a good choice 🤷♀️
anyway I reopened this for a question
why cant I use an integer that stores 0 or 1
See my Java code in action
Check out this Java code I wrote. Run it and see what it does!
it says int cannot be converted to boolean but I dont need it to be? is there a rule against this or smth
cuz afik you can store any integer in an int variable
a
boolean is either true or false
not 0 or 1oh yeah that too
so why does it show me that error
what exactly error? You cannot assign a number to a boolean
its not a boolean tho
its an integer
can u show the line at which the error happens
cant see the code on mobile :SkullPixel:
ah
I'm also on mobile though lol
dang beat me to it but thank you
huh you get it embedded?
code block
3 backtocks before and after
Help Guidelines
1. Don't ask questions like "Can I ask ...?" or "Can someone help me?". It's easier for everyone involved if you provide a detailed description of your problem up-front; this makes it more likely for helpers to want to help, and more likely that you'll get an answer quickly. Please provide code snippets and error messages (if any) to help us help you!
2. Please create a post in <#1023632039829831811> for your questions. Do not use other people's posts for your questions.
3. You may use the
/help ping command if your question is urgent.
Abusing this will result in warnings and/or a ban.
4. Do not ask for help with exams or homework. You may ask for help with understanding individual concepts and parts of a question, but homework and exam questions that show little effort on your part will most likely go unanswered and may be removed.
5. Do not ask your question if you didn't at least try to solve the problem yourself, are ignorant, or, instead of trying to improve, ask repeating, simple, questions.
6. Format your code using Discord's triple-backtick syntax.
7. For reasons similar to those of Stack Overflow, we currently do not allow content created by ChatGPT while helping other people. You may still share its content, when you are not helping somebody and are not looking to deceive others, for example when discussing ChatGPT and its technology.
see the GIF
oh nono I know how to do that
didnt do it cuz w the last program the msg was too long
it wasn't too long lol
I meant youre on mobile but you can see the embed?
no
I just downloaded it, renamed it to .txt and copied it
yeah this ones a lot lot lot more straightforward logically I think so the codes simpler too
ah
if(rem=1)
rem=1 sets rem to 1
you probably want if(rem==1)OHHHHHHH
yeah that was it thanks 😭😭😭
💤 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.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.
(same error with 0)
why wont it let me

💔
I figured it out :cleanteeth:
hugs this bruh
xd
where do you get that error?
what line
💤 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.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.b=word[i].length()
fixed that but im back to this now
ughgh I hate this...ur trying to add a table with a char
💤 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.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.eh?
first type table of string second type is a character
you cant add these two together
unless u fixed that already idk
ohhhhh
okay
💤 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.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.