#check palindrom

1 messages ยท Page 1 of 1 (latest)

crisp hull
#

hi i have a problem with eclipse IDE. is there a channel i can ask help with it ?

limber orchidBOT
#

<@&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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

ornate mortar
#

whats ur issue

#

i will try to help, but if i can't someone that knows will eventually come and hepl

#

just an fyi

crisp hull
#

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

ornate mortar
#

i dont get it, once u run the program dont u just screenshot it? why run a new one agian

crisp hull
#

it won't run

crisp hull
#

instead of having multiple screenshots

#

its a very small program

ornate mortar
#

uhhhhhh

#

i use intellij more so idk, sry bout that

#

maybe someone that used eclipse can help

crisp hull
#

you see?

#

that's why i want to save the old result

ornate mortar
#

ok

#

hold on

ornate mortar
#

u have the results showing anna is a palindrome

crisp hull
#

yeah

#

then i run the program again

#

and the console deletes the result i had before

ornate mortar
#

oh so u want ot show ur teaher multiple results?

crisp hull
#

yes

ornate mortar
#

OHHH

#

ok one se

#

c

#

lemme think about it

#

and ill give u the answer

crisp hull
#

the issues is with the settings

#

๐Ÿ˜„

ornate mortar
#

yuh

crisp hull
#

that's the code btw

ornate mortar
#

ye

crisp hull
#

in case the code interferes with the settings

ornate mortar
#

mgm

#

one sec ill give u answer eq

#

rq

#

ok i got u

#

here

storm loom
#

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.

ornate mortar
#

its a preference thing

#

settings

#

@crisp hull

#

go to console view

crisp hull
ornate mortar
#

usually at the bottom of the window

#

tell me when u find it

#

ill just type the list to do

crisp hull
#

where?

storm loom
ornate mortar
#
  1. Open Eclipse and go to the Console view: This is usually found at the bottom of the Eclipse window.

  2. 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.

  3. Select 'Preferences': In the dropdown menu that appears, there will be an option for 'Preferences'. Click on this.

  4. Change the Console settings: In the Preferences window, you'll find an option like "Clear console before launch" or similar. Uncheck this option.

  5. Apply and Close: Click 'Apply' and 'OK' to save your changes.

crisp hull
ornate mortar
#

did u get it?

crisp hull
#

im stuck at step 1 ๐Ÿ˜„

ornate mortar
#

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

crisp hull
#

which one is it

#

for step 2?

ornate mortar
#

did u try clicking both dropdowns?

#

i dont have eclipse so i can't really be that specific

storm loom
#

wym? each time you run the program it does altho i never really bothered to look into settings if it can hold prev results.

crisp hull
ornate mortar
#

go in console

#

u see on the right?

#

ur in "laucnhing" rn

crisp hull
ornate mortar
#

thats wild

crisp hull
#

ikr

ornate mortar
#

one sec bro im downloading eclipse

#

are u in a mad hurry?

crisp hull
#

nop

#

๐Ÿ˜‚

ornate mortar
#

ok

#

then give me a sec

#

sry bout that

#

with that said why are u using eclipse

crisp hull
#

bc my teacher uses it too

#

๐Ÿ˜„

#

im a java noob to be fair idk nearly anything about it

ornate mortar
#

intellij is almost like industry standard

#

but anyways that isnt important

crisp hull
#

well found anything ? ๐Ÿ˜„

ornate mortar
#

nope

#

sry

#

ok eclipse installed

#

ill look into it

crisp hull
#

i owe you one

ornate mortar
#

nah ur good

crisp hull
#

feel free to tag me anytime. my "do not disturb" mode is only there cuz red is cooler than green

#

๐Ÿ˜„

ornate mortar
#

yep

#

@crisp hull

#

can u send me the code

#

like copy n paste not screenshot

crisp hull
#
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();
    }
}
ornate mortar
#

thanks

#

thats all?

crisp hull
#

yes

#

pretty small code

ornate mortar
#

how did u get syntax highlighting in discord lol

crisp hull
#

and then you finish with another 3 dots in a row

ornate mortar
#

i know

#

anyways what words do u want

#

anna and?

crisp hull
#

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?

ornate mortar
#

nah

#

there aint no settings for that

crisp hull
#

weird my school does make it work

#

can you try something ?

ornate mortar
#

thats why i asked for code so i can run it in my intellij and somehow it works

crisp hull
#

pin the console

#

in eclipse

ornate mortar
#

i deleted that

crisp hull
#

and go to launching

ornate mortar
#

LMAO

crisp hull
#

LOL

ornate mortar
#

eclipse to ugly

#

u can try it urself tho

#

or i can run it in my intellij

crisp hull
#

does intellij do what i ask ?

ornate mortar
#

no idea

limber orchidBOT
#

check palindrom

#

Changed the title to check palindrom.

ornate mortar
#

mine erases too

#

unlucko

#

i think its a common convention

crisp hull
#

for example python does that lil thing

#

where it doesn't erase anything

ornate mortar
#

right

#

i know

crisp hull
#

is there any way to achieve that?

ornate mortar
#

i can't do it in my ide either

crisp hull
#

i guess ill legit bomb the teacher with screenshots

ornate mortar
#

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

crisp hull
#

thanks for everything. you did what's possible

ornate mortar
#

my pleasure

#

hopefully u get ur help

bright path
#

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 ");
        }
        
    }
    
}
ornate mortar
#

nice

bright path
#

lol

ornate mortar
#

never thought of that

#

u smart

bright path
#

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

ornate mortar
#

still not experienced enough to have that programmer logic

bright path
#

But this just loops infinitly

crisp hull
#

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

bright path
#

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

crisp hull
#

well that's how im used to do things

bright path
#

Thats dumb just use a while

crisp hull
#

anyway i just sent multiple screenshots

bright path
#

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

storm loom
#

@bright path be mindful to use better words to showcase your examples, I removed the screenshot as I found it inappropriate.

bright path
#

ok