Java String Format

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии • 31

  • @matheuss.olivera
    @matheuss.olivera 3 месяца назад +1

    Hello, I'm talking from Brazil and your video helped me a lot in college. Thank you! Or as we say here, "Obrigado"!!!!

    • @MikesTechCorner
      @MikesTechCorner  3 месяца назад

      Glad to hear that! You just made my day with your comment. :)

  • @ReadyDaddy
    @ReadyDaddy Год назад +1

    Yo Mike! that was really helpful. You went through all the needed examples.
    Our lecturer on uni just quickly went through this formatting and I was left with a big question mark above my head haha. Thank you for clearing it up!

    • @MikesTechCorner
      @MikesTechCorner  Год назад

      Glad it helped! A lot of times it is easy when you see the examples. :-)

  • @WittCode
    @WittCode 3 года назад +2

    Great video Mike! Really clears things up!

  • @josephjoy7080
    @josephjoy7080 4 года назад +5

    String meToYou="thank";
    String meToYou1="you";
    String meToYou2="so";
    String meToYou3="much";

    System.out.println(String.format("%S %S %S %S

  • @Stixboi-
    @Stixboi- Год назад +1

    That was amazing, it helps me a lot of thanks for the helping.

    • @MikesTechCorner
      @MikesTechCorner  Год назад +1

      You are welcome. Thank you for watching and commenting

  • @alixerkmir2097
    @alixerkmir2097 3 года назад +1

    I have notepad but I want add string and save it and continue saving string next line , how can I do it?

    • @MikesTechCorner
      @MikesTechCorner  3 года назад

      First of all install IntelliJ and Atom. Then use multiline strings in Java or concatenate the Java Strings with the + operator.

    • @alixerkmir2097
      @alixerkmir2097 3 года назад +1

      @@MikesTechCorner do you have discord?

    • @MikesTechCorner
      @MikesTechCorner  3 года назад

      yes. link is my new vids

    • @alixerkmir2097
      @alixerkmir2097 3 года назад

      @@MikesTechCorner can you please make video about "Then use multiline strings in Java"?

  • @ndeyesene7031
    @ndeyesene7031 2 года назад +1

    Great video. Very helpful
    for me.

  • @yuriiandreitsev8548
    @yuriiandreitsev8548 3 года назад +1

    amazing video that teaches me to be better

  • @minor12828
    @minor12828 7 месяцев назад +1

    Cool things String.format("%S", "mike") Keep them flowing!

    • @MikesTechCorner
      @MikesTechCorner  7 месяцев назад

      Thanks! Will do! You made my day with your comment. :)

    • @minor12828
      @minor12828 7 месяцев назад

      @@MikesTechCorner I would argue that you made it in the past the moment you recorded/uploaded the vodeo but it is a sunny day so let's agree to disagree 🤝. You enhanced my weekend with such content. 🙂

  • @dzunibravo
    @dzunibravo 3 года назад +1

    Thanks man.

  • @aslam-kg4xo
    @aslam-kg4xo 3 года назад +1

    Nice.
    keep posting :)

    • @MikesTechCorner
      @MikesTechCorner  3 года назад +1

      Thank you, I will. Your feedback gives me energy. :)

  • @jamesdinser4411
    @jamesdinser4411 Год назад

    The %40d is not working . I get this error. d ! = java.lang.String. My code looks like this. System.out.println(String.format("%s %40d %s",columnTitle1, columnTitle2));

    • @MikesTechCorner
      @MikesTechCorner  Год назад

      You can also try one of the templating langs like thymeleaf

    • @jamesdinser4411
      @jamesdinser4411 Год назад

      Ok I'll look into that. Thanks!@@MikesTechCorner

    • @MikesTechCorner
      @MikesTechCorner  Год назад

      Or try out this article. www.baeldung.com/java-string-formatter