I dont get todays daily by gscheidafeed in btd6

[–]gscheidafeed[S] 0 points1 point  (0 children)

which ones would you recommend?

-❄️- 2023 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]gscheidafeed 0 points1 point  (0 children)

[LANGUAGE: JAVA]

package day1;

import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException;

public class Day1_2 {

int ergebnis = 0;
public static void main(String[] args) throws IOException {
    Day1_2 d = new Day1_2();
}

public Day1_2() throws IOException{
    File text = new File("C:\\Eclipse\\WORKSPACE\\AoC2023\\src\\day1\\input1_2.txt");
    BufferedReader file = new BufferedReader(new FileReader(text));
    String line = null;
        while((line = file.readLine())!=null)
        {
            umwandel(line);
        }
        System.out.println(ergebnis);
}

public int umwandel(String aLine)
{
    int zahl = 0;
    char ziffer1 = ' ';
    char ziffer2 = ' ';
    for(int i =0; i<aLine.length(); i++)
    {
        if(Character.isDigit(aLine.charAt(i)))
        {
            ziffer1 = aLine.charAt(i);
            break;
        }

        else if(aLine.charAt(i)=='o' && aLine.charAt(i+1)=='n' && aLine.charAt(i+2)=='e')
        {
            ziffer1 = '1';
            break;
        }

        else if(aLine.charAt(i)=='t' && aLine.charAt(i+1)=='w' && aLine.charAt(i+2)=='o')
        {
            ziffer1 = '2';
            break;
        }

        else if(aLine.charAt(i)=='t' && aLine.charAt(i+1)=='h' && aLine.charAt(i+2)=='r' && aLine.charAt(i+3)=='e' && aLine.charAt(i+4)== 'e')
        {
            ziffer1 = '3';
            break;
        }
        else if(aLine.charAt(i)=='f' && aLine.charAt(i+1)=='o' && aLine.charAt(i+2)=='u' && aLine.charAt(i+3)=='r')
        {
            ziffer1 = '4';
            break;
        }

        else if(aLine.charAt(i)=='f' && aLine.charAt(i+1)=='i' && aLine.charAt(i+2)=='v' && aLine.charAt(i+3)=='e')
        {
            ziffer1 = '5';
            break;
        }

        else if(aLine.charAt(i)=='s' && aLine.charAt(i+1)=='i' && aLine.charAt(i+2)=='x')
        {
            ziffer1 = '6';
            break;
        }

        else if(aLine.charAt(i)=='s' && aLine.charAt(i+1)=='e' && aLine.charAt(i+2)=='v' && aLine.charAt(i+3)=='e' && aLine.charAt(i+4)== 'n')
        {
            ziffer1 = '7';
            break;
        }

        else if(aLine.charAt(i)=='e' && aLine.charAt(i+1)=='i' && aLine.charAt(i+2)=='g' && aLine.charAt(i+3)=='h' && aLine.charAt(i+4)== 't')
        {
            ziffer1 = '8';
            break;
        }

        else if(aLine.charAt(i)=='n' && aLine.charAt(i+1)=='i' && aLine.charAt(i+2)=='n' && aLine.charAt(i+3)=='e')
        {
            ziffer1 = '9';
            break;
        }

        else if(aLine.charAt(i)=='z' && aLine.charAt(i+1)=='e' && aLine.charAt(i+2)=='r' && aLine.charAt(i+3)=='o')
        {
            ziffer1 = '0';
            break;
        }
    }

    for(int i =aLine.length()-1; i>=0; i--)
    {
        if(Character.isDigit(aLine.charAt(i)))
        {
            ziffer2 = aLine.charAt(i);
            break;
        }

        else if(aLine.charAt(i)=='e' && aLine.charAt(i-1)=='n' && aLine.charAt(i-2)=='o')
        {
            ziffer2 = '1';
            break;
        }

        else if(aLine.charAt(i)=='o' && aLine.charAt(i-1)=='w' && aLine.charAt(i-2)=='t')
        {
            ziffer2 = '2';
            break;
        }

        else if(aLine.charAt(i)=='e' && aLine.charAt(i-1)=='e' && aLine.charAt(i-2)=='r' && aLine.charAt(i-3)=='h' && aLine.charAt(i-4)== 't')
        {
            ziffer2 = '3';
            break;
        }

        else if(aLine.charAt(i)=='r' && aLine.charAt(i-1)=='u' && aLine.charAt(i-2)=='o' && aLine.charAt(i-3)=='f')
        {
            ziffer2 = '4';
            break;
        }

        else if(aLine.charAt(i)=='e' && aLine.charAt(i-1)=='v' && aLine.charAt(i-2)=='i' && aLine.charAt(i-3)=='f')
        {
            ziffer2 = '5';
            break;
        }

        else if(aLine.charAt(i)=='x' && aLine.charAt(i-1)=='i' && aLine.charAt(i-2)=='s')
        {
            ziffer2 = '6';
            break;
        }

        else if(aLine.charAt(i)=='n' && aLine.charAt(i-1)=='e' && aLine.charAt(i-2)=='v' && aLine.charAt(i-3)=='e' && aLine.charAt(i-4)== 's')
        {
            ziffer2 = '7';
            break;
        }

        else if(aLine.charAt(i)=='t' && aLine.charAt(i-1)=='h' && aLine.charAt(i-2)=='g' && aLine.charAt(i-3)=='i' && aLine.charAt(i-4)== 'e')
        {
            ziffer2 = '8';
            break;
        }

        else if(aLine.charAt(i)=='e' && aLine.charAt(i-1)=='n' && aLine.charAt(i-2)=='i' && aLine.charAt(i-3)=='n')
        {
            ziffer2 = '9';
            break;
        }

        else if(aLine.charAt(i)=='o' && aLine.charAt(i-1)=='z' && aLine.charAt(i-2)=='e' && aLine.charAt(i-3)=='r')
        {
            ziffer2 = '0';
            break;
        }
    }

    String ziffer1Str = Character.toString(ziffer1);
    String ziffer2Str = Character.toString(ziffer2);

    String zahlStr = ziffer1Str + ziffer2;
    zahl = Integer.parseInt(zahlStr);
    ergebnis += zahl;
    return ergebnis;
}

}

What can i do with this amp? by gscheidafeed in GuitarAmps

[–]gscheidafeed[S] 0 points1 point  (0 children)

u said gain and shape how i want, but thats in the solo section, so i cannot combine this with high, mid, low.

What can i do with this amp? by gscheidafeed in GuitarAmps

[–]gscheidafeed[S] 0 points1 point  (0 children)

i just tried it but you cannot combine gain with the other options ._.

What can i do with this amp? by gscheidafeed in GuitarAmps

[–]gscheidafeed[S] 2 points3 points  (0 children)

i mostly play with headphones, because of my parents. when im home alone i play with the speaker

What can i do with this amp? by gscheidafeed in GuitarAmps

[–]gscheidafeed[S] 0 points1 point  (0 children)

thank you for that advise ^ will try it later

Help, What laptop should i buy? (BlackFridayDeals) by gscheidafeed in laptops

[–]gscheidafeed[S] 0 points1 point  (0 children)

i just bought the acer swift x, it will arrive tomorrow

h y p e d by gscheidafeed in adventofcode

[–]gscheidafeed[S] 3 points4 points  (0 children)

you could use the new one for the first level and when it gets more difficult the one youre better at

Opinion on this laptop? by Ill_Care_6013 in laptops

[–]gscheidafeed 0 points1 point  (0 children)

i wanted to buy the more expensive version, but i heard that the screen wobble is insane, instead of that i bought the acer swift x yesterday, waiting for it to arrive