#check palindrom
1 messages ยท Page 1 of 1 (latest)
<@&987246527741304832> please have a look, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
Yes, there are several channels where you can ask for help with Eclipse IDE. Here are a few options:
-
Eclipse Community Forums: You can visit the official Eclipse Community Forums at https://www.eclipse.org/forums/ to ask your questions and seek help from the community.
-
Stack Overflow: Stack Overflow is a popular platform for asking programming-related questions. You can post your question there using the "eclipse" tag, and the community will try to assist you.
-
Eclipse subreddit: There is a dedicated subreddit for Eclipse at https://www.reddit.com/r/eclipse/. You can join the community and ask your questions there.
-
Eclipse Discord server: The official Eclipse Discord server provides a platform for developers to discuss various topics related to Eclipse IDE. You can join the server and ask for help in the relevant channels.
Remember to provide detailed information about your problem when asking for help, such as error messages, steps to reproduce the issue, and any relevant code snippets. This will make it easier for others to understand and assist you with your problem.
The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source projects, including runtimes, tools and frameworks.
whats ur issue
i will try to help, but if i can't someone that knows will eventually come and hepl
just an fyi
so. i have a project at school where i must create a program that checks if a word is palindrome. the program works. and i must SCREENSHOT the results. to the teacher to show that it works. the problem is with the console
every time i do a new RUN
the console deletes the old results
i just installed eclipse you know
i tried pinning the console. didn't work
i tried checking off the "remove terminated launches when a new launch is created"
didn't work
i tried a combination of both
and result is. that after i run the program again
i dont get it, once u run the program dont u just screenshot it? why run a new one agian
it won't run
i want to have the results below eachother
instead of having multiple screenshots
its a very small program
uhhhhhh
i use intellij more so idk, sry bout that
maybe someone that used eclipse can help
i dont get it
u have the results showing anna is a palindrome
oh so u want ot show ur teaher multiple results?
yes
yuh
that's the code btw
ye
in case the code interferes with the settings
there's nothing wrong with eclipse, it's just each time you run the program everything starts from clean state since you're not saving anything here.
i mean i know i probably fucked up the settings that's why im here ๐
usually at the bottom of the window
tell me when u find it
ill just type the list to do
no i mean it's same behavior regardless of IDE, if you want to check multiple values then you need to read em all together and then check each. What instructions did your teacher gave? do you have em somewhere.
im pretty sure u can not wipe the last result tho
-
Open Eclipse and go to the Console view: This is usually found at the bottom of the Eclipse window.
-
Click on the 'Console' menu: This is a small button with a downward-facing triangle, located at the top right corner of the Console view.
-
Select 'Preferences': In the dropdown menu that appears, there will be an option for 'Preferences'. Click on this.
-
Change the Console settings: In the Preferences window, you'll find an option like "Clear console before launch" or similar. Uncheck this option.
-
Apply and Close: Click 'Apply' and 'OK' to save your changes.
they are in greek so you won't understand em. but they are simple. "screenshot the results to show that it works"
did u get it?
im stuck at step 1 ๐
u have step one done
the half window on the right is console view
but basically u just wanna find the console setting thats it
and uncheck the clear console before launch settings, or something that does similar
did u try clicking both dropdowns?
i dont have eclipse so i can't really be that specific
wym? each time you run the program it does altho i never really bothered to look into settings if it can hold prev results.
thats wild
ikr
bc my teacher uses it too
๐
im a java noob to be fair idk nearly anything about it
well found anything ? ๐
i owe you one
nah ur good
feel free to tag me anytime. my "do not disturb" mode is only there cuz red is cooler than green
๐
package karkinikh;
import java.util.Scanner;
public class karkinikh_klash {
public static void main(String[] args) {
Scanner myObj = new Scanner(System.in);
System.out.println("Give a word ");
String leksi = myObj.nextLine();
// Convert the input to lowercase for a case-insensitive check
String leksiLowerCase = leksi.toLowerCase();
int check = 1;
int l = leksiLowerCase.length();
for (int i = 0; i < l / 2; i++) {
if (leksiLowerCase.charAt(i) != leksiLowerCase.charAt(l - i - 1)) {
check = -1;
break;
}
}
if (check == 1) {
System.out.println("It's palindrome ");
} else {
System.out.println("It's not palindrome ");
}
myObj.close();
}
}
how did u get syntax highlighting in discord lol
ill do the rest of the tests
i just need the settings to work
did it work on you ?
like the text being on below of eachother?
thats why i asked for code so i can run it in my intellij and somehow it works
i deleted that
and go to launching
LMAO
LOL
does intellij do what i ask ?
no idea
is there any way to achieve that?
i can't do it in my ide either
i guess ill legit bomb the teacher with screenshots
yea whats wrong with that
im sure they couldnt care less
@crisp hull sry for wasting so much of ur time
i really can't get it to work
ive ran it in ides, terminals
non of it works
sry about that again
but maybe u can email ur teacher and ask them how did they achieve the effect u want
thanks for everything. you did what's possible
And thats gotta be a "for in range:" loop
You can do the same in java lol
I assume that is what you would like to achive @crisp hull
public static void main(String[] args) {
Scanner myObj = new Scanner(System.in);
while(true) {
System.out.println("Give a word ");
String leksi = myObj.nextLine();
// Convert the input to lowercase for a case-insensitive check
String leksiLowerCase = leksi.toLowerCase();
int check = 1;
int l = leksiLowerCase.length();
for (int i = 0; i < l / 2; i++) {
if (leksiLowerCase.charAt(i) != leksiLowerCase.charAt(l - i - 1)) {
check = -1;
break;
}
}
if (check == 1) {
System.out.println("It's palindrome ");
} else {
System.out.println("It's not palindrome ");
}
}
}
nice
lol
Thats not me being smart thats about if you can think how a programmer should be thinking or if you canยดt lol
Java is one of the most wide languages and there is most likely nothing you cant do in it so if you are unable to do something its a you issue 99% of the time
still not experienced enough to have that programmer logic
Can be changed using "for" btw so you can make a input of how many words you would like to check
But this just loops infinitly
yeah that's a while
but not what i wanted to do
what i wanted to do is when i run the program again
instead of it deleting the past results
it legit saves the past results and opens the program on top of the past results
ok so why in gods green earth would anyone need that
And I think that would not even work software side because you could in theory create multiple threads which would probably cause your IDE to crash
well that's how im used to do things
ik
Thats dumb just use a while
anyway i just sent multiple screenshots
ok
Anyways you could run your program using multiple threads which would start it from scratch basically
But a while does the exact same thing
@bright path be mindful to use better words to showcase your examples, I removed the screenshot as I found it inappropriate.
ok