10 Ejercicios con cadenas de texto

Ejercicio 1:

Muestra la longitud del texto: “This is Java!”

Resultado:

VerSoluciónEjer1

Ejercicio 2:

Desmenuza el String “Java” mostrándolo por pantalla carácter a carácter.

Resultado:

VerSoluciónEjer2

Ejercicio 3:

Invertir el texto: “Java desde 0”

Resultado:

VerSoluciónEjer3

Ejercicio 4:

Elimina los espacios del texto: “James Gosling Created Java”

Resultado:

VerSoluciónEjer4

Ejercicio 5:

Cuenta las vocales y las consonantes del String “Java Java Java”. ¡OJO CON LOS ESPACIOS!

Resultado:

VerSoluciónEjer5

Ejercicio 6:

Divide la cadena de texto “www.javadesde0.com” en dos partes “www.java” y “desde0.com”. Para posteriormente concaténalas y mostrarlas de nuevo.

Resultado:

VerSoluciónEjer6

Ejercicio 7:

Transforma la cadena de texto “javeros” a mayúsculas. Guarda el valor en la variable y posteriormente conviértela nuevamente a minúsculas.

Resultado:

VerSoluciónEjer6

Ejercicio 8:

Compara si el String “Java” es igual que el String “JavaScript”.

Resultado:

VerSoluciónEjer6

Ejercicio 9:

Sobre la cadena de texto “Jeve jeve jeve”, sustituye/reemplaza todas las vocales e por la vocal a dando como resultado “Java java java”.

Resultado:

VerSoluciónEjer6

Ejercicio 10:

Transforma los caracteres del String: “ABCD” a ASCII.

Resultado:

VerSoluciónEjer6

Esto es todo por hoy, espero que os haya gustado. Un saludo javer@s!

61 comentarios

  1. Hi to every body, it’s my first go to see of this
    weblog; this website includes amazing and actually good
    data in favor of visitors.

  2. I every time spent my half an hour to read this weblog’s articles or reviews daily along with a mug of coffee.

  3. I am sure this paragraph has touched all the internet viewers,
    its really really nice post on building up new blog.

    My web site … Cool Blast Air Conditioner Review

  4. Spot on with this write-up, I honestly feel this
    site needs much more attention. I’ll probably be back again to read through more, thanks for the advice!

    my blog post: Sparkling CBD

  5. It’s amazing to go to see this web page and reading the views of
    all mates on the topic of this post, while I am also keen of getting
    familiarity.

    Visit my webpage :: Keto Max XR Review

  6. Somebody necessarily assist to make critically articles
    I might state. That is the first time I frequented your website page and thus far?
    I amazed with the research you made to make this actual post extraordinary.
    Fantastic task!

    My blog post http://shihan.com.ru/

  7. This website was… how do you say it? Relevant!!
    Finally I have found something that helped me. Thanks a lot!

  8. hello there and thank you for your information ? I have definitely picked up
    something new from right here. I did however expertise
    several technical issues using this website, since I experienced to reload the website many
    times previous to I could get it to load properly.
    I had been wondering if your web host is OK? Not that I’m complaining, but sluggish loading instances
    times will very frequently affect your placement in google and can damage your quality score if advertising and marketing with Adwords.

    Well I’m adding this RSS to my email and can look out for much more of your respective interesting
    content. Ensure that you update this again soon.

    my site Wawza Gummies

  9. Thanks for all your efforts that you have put in this.
    Very interesting information.

    Also visit my site Blosum CBD Gummies

  10. Every weekend i used to visit this web site, as i want
    enjoyment, as this this website conations truly fastidious
    funny stuff too.

  11. I’m not sure exactly why but this site is loading very slow for me.
    Is anyone else having this issue or is it a issue on my end?
    I’ll check back later and see if the problem still exists.

  12. Excellent read, I just passed this onto a friend who was doing a little research on that.
    And he actually bought me lunch since I found
    it for him smile Thus let me rephrase that: Thanks for lunch!

    Look into my web-site … Insights CBD Reviews

  13. Thanks so much regarding giving me personally an update on this topic on your site.

    Please realize that if a brand new post appears or if perhaps any improvements occur
    on the current publication, I would consider reading
    more and knowing how to make good use of those strategies
    you share. Thanks for your time and consideration of other folks by making this web site available.

    Feel free to visit my blog post … anapa-alrosa.com.ru

  14. Hi, I do believe this is a great website. I stumbledupon it 😉 I will
    come back yet again since I bookmarked it. Money and freedom is the greatest way to change,
    may you be rich and continue to guide others.

    my website: TetraMale Reviews (librarius.main.jp)

  15. Keep up the good piece of work, I read few posts on this web
    site and I think that your web site is rattling interesting and has got bands of excellent information.

    Here is my web site: valdezforsupervisor.com

  16. Great article. I’m facing a few of these issues as well..

    Here is my website :: Ketorol Keto (http://www.fotosombra.com.br)

  17. Hi there everyone, it’s my first pay a visit at this web page, and article is in fact fruitful in favor
    of me, keep up posting these content.

  18. Thank you, I’ve recently been searching for info about this subject for ages and yours is the best I’ve found
    out so far. However, what concerning the conclusion? Are you positive concerning the supply?

    my blog; anapa-alrosa.com.ru

  19. Neat blog! Is your theme custom made or
    did you download it from somewhere? A design like yours
    with a few simple adjustements would really make my blog stand out.
    Please let me know where you got your design. Many thanks

    Also visit my website Eagle CBD Gummies Reviews
    [Anna]

  20. I’m not sure exactly why but this blog is loading extremely
    slow for me. Is anyone else having this problem or is it a issue on my end?
    I’ll check back later and see if the problem still exists.

  21. My developer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on a variety of
    websites for about a year and am nervous about switching to another
    platform. I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress posts into it?
    Any kind of help would be greatly appreciated!

    Review my site … Apple Cider Vinegar Keto Review

  22. I really value your piece of work, Great post.

    My blog: Insights CBD (bbs.ranmao.com)

  23. Hey, I think your website might be having browser compatibility issues.
    When I look at your blog site in Opera, it looks fine but when opening in Internet Explorer, it
    has some overlapping. I just wanted to give you a quick heads up!

    Other then that, great blog!

  24. That is a great tip especially to those new to the blogosphere.
    Simple but very precise information? Appreciate your sharing this one.
    A must read article!

    Here is my web site: Optimum Keto Review

  25. Tremendous things here. I am very satisfied to see your post.

    Thanks so much and I’m having a look ahead to contact you.
    Will you please drop me a e-mail?

    My blog post: SynoGut Review

  26. As I website owner I believe the content material here is really great, appreciate it for your efforts.

    Also visit my homepage … Insights CBD Gummies

  27. When someone writes an piece of writing he/she keeps
    the thought of a user in his/her mind that how a user can know it.

    Thus that’s why this paragraph is perfect. Thanks!

    Here is my web page :: Tacoma Farms CBD Reviews

  28. I am really impressed together with your writing abilities as
    smartly as with the structure in your weblog.
    Is that this a paid topic or did you modify it your self?
    Anyway keep up the nice high quality writing, it is uncommon to see a nice blog like
    this one nowadays.

    My blog post: ColonBroom Review

  29. Great post. I was checking continuously this blog and
    I’m inspired! Very helpful information specifically the
    ultimate part 🙂 I maintain such info much. I used to be seeking this certain information for a very lengthy time.
    Thanks and good luck.

    Take a look at my blog post; Viking XL Keto

  30. I have been surfing online more than 4 hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. In my view, if all webmasters and bloggers made good content as you did, the
    net will be a lot more useful than ever before.

  31. I almost never leave a response, but i did some searching
    and wound up here 10 Ejercicios con cadenas de texto – Java desde 0.
    And I actually do have 2 questions for you if it’s allright.

    Could it be just me or does it look like a few of the responses look like
    they are written by brain dead individuals?
    😛 And, if you are writing on additional sites, I would like to keep
    up with everything fresh you have to post. Could you make a list of all
    of your shared sites like your twitter feed, Facebook page or linkedin profile?

    Feel free to visit my web-site :: forum.adm-tolka.ru

  32. Great work! This is the type of info that should
    be shared around the net. Shame on Google for no longer positioning this
    submit upper! Come on over and consult with my web site .
    Thanks =)

    My website – Cool Blast Air Conditioner Review

  33. Its fantastic as your other articles :D, appreciate it for posting.

    Also visit my site :: Botanical Farms CBD Gummies

  34. Everything is very open with a clear explanation of the issues.
    It was truly informative. Your site is very useful. Many thanks
    for sharing!

    My webpage … Keto Incinerate Review

  35. Whoah this weblog is wonderful i love reading your posts.

    Stay up the great paintings! You realize, many persons are
    looking round for this information, you can aid them greatly.

    Also visit my site … Keto Incinerate Advanced Weight Loss

  36. It’s in fact very complicated in this busy
    life to listen news on Television, so I only use the web for that reason, and take the newest
    information.

  37. I’m amazed, I must say. Seldom do I come across a blog that’s equally educative and entertaining,
    and without a doubt, you’ve hit the nail on the head. The problem is
    an issue that too few men and women are speaking intelligently about.
    I’m very happy that I found this during my search for something concerning this.

  38. Can you tell us more about this? I’d love to find out some additional information.

    Also visit my site: Niva CBD Gummies (Jenny)

  39. Yesterday, while I was at work, my sister stole my iPad and tested to see if it can survive
    a 40 foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views.
    I know this is totally off topic but I had to share it with
    someone!

  40. Right here is the right site for anybody who hopes
    to find out about this topic. You know a whole lot its almost tough to argue
    with you (not that I really would want to…HaHa). You definitely put a brand new spin on a subject that has been written about for
    ages. Great stuff, just great!

  41. Wow! This blog looks exactly like my old one!
    It’s on a totally different subject but it has pretty much the same page layout and design. Wonderful choice of colors!

    Have a look at my website … Optimum Keto Ingredients

  42. Hey There. I found your blog using msn. This is an extremely well written article.
    I will be sure to bookmark it and return to read more of your useful information. Thanks for the post.
    I’ll certainly return.

    my homepage; Max BHB

  43. I pay a visit day-to-day a few sites and blogs to
    read posts, however this blog offers feature based writing.

    Also visit my web site; Infinuity CBD Gummies Reviews, http://www.comptine.biz/modules.php?name=Your_Account&op=userinfo&username=Darin96H6,

  44. Great post. I used to be checking constantly this weblog and I
    am impressed! Extremely helpful info specifically the last part :
    ) I take care of such info much. I was seeking this particular information for a long time.
    Thanks and best of luck.

    Feel free to surf to my homepage Moscatcher

  45. Real nice pattern and good subject matter, absolutely nothing else we want :D.

    Visit my blog post; Eagle Hemp CBD Gummies Reviews

  46. Hello there! This is my first visit to your blog!
    We are a collection of volunteers and starting a new project in a community in the same niche.
    Your blog provided us valuable information to work on. You have done a outstanding job!

  47. Your style is very unique compared to other people I’ve read
    stuff from. Thanks for posting when you have the opportunity, Guess
    I’ll just bookmark this page.

  48. I consider something truly interesting about your blog so I saved
    to my bookmarks.

    My page Yec Keto Review

  49. It’s really a great and useful piece of info. I’m glad that you simply shared this helpful info with us.
    Please keep us informed like this. Thank you for sharing.

    Also visit my site; Luiresse Review

  50. I think other website proprietors should take this web site as an example, very clean and great user friendly design.

    Also visit my web-site – Oracle Leaf Gold CBD Review

  51. Its like you read my mind! You seem to grasp a lot about this, such as you wrote the e-book in it or something.
    I feel that you simply could do with a few % to power the message house
    a little bit, however other than that, this is magnificent blog.

    A fantastic read. I’ll certainly be back.

  52. Hurrah! At last I got a weblog from where I be capable of in fact
    take useful information regarding my study and knowledge.

    My blog; Imarais Beauty Reviews

  53. What’s up friends, its fantastic piece of writing on the topic of teachingand entirely explained, keep it up all the time.

    Also visit my webpage: Oracle Leaf Gold CBD Review

  54. Please let me know if you’re looking for a article author for your
    blog. You have some really great articles and I think
    I would be a good asset. If you ever want to take
    some of the load off, I’d love to write some material
    for your blog in exchange for a link back to mine. Please blast
    me an email if interested. Many thanks!

    my blog: Natural Burn Keto Pills

  55. Please let me know if you’re looking for a article writer for your site.
    You have some really great posts and I think I would be a good asset.
    If you ever want to take some of the load off, I’d love to write some content for your blog
    in exchange for a link back to mine. Please send me an e-mail if interested.
    Cheers!

  56. Thanks for sharing your info. I truly appreciate your efforts and I am
    waiting for your next post thank you once again.

  57. Lovely just what I was searching for. Thanks
    to the author for taking his time on this one.

    My page; Semzia Keto Reviews

  58. I am writing to let you understand of the helpful discovery our
    girl gained going through your web page.
    She came to find several details, most notably what it’s
    like to possess an excellent teaching spirit to
    get many people with no trouble know a variety of specialized topics.
    You actually exceeded my expectations. I appreciate
    you for showing these powerful, healthy, informative and
    easy tips on that topic to Sandra.

    my blog post :: Nature Leaf CBD Gummies Reviews

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

La Ley 34/2002 nos obliga a avisarte de que usamos cookies propias y de terceros con objetivos estadísticos y de sesión y para mostrarte la 'publi' que nos da de comer. Tranquilo, este mensaje solo sale una vez. Más información

Java desde 0 comunica a los usuarios, a través de este aviso, que puede utilizar cookies cuando el usuario navega por las diferentes pantallas y páginas del sitio. Durante el uso de nuestra página Web usted acepta y autoriza expresamente el uso de cookies, de acuerdo con nuestra Política de Privacidad. Este sitio web utiliza las siguientes cookies propias: - Cookies de sesión, para garantizar que los usuarios que escriban comentarios en el blog sean humanos y no aplicaciones automatizadas. De esta forma se combate el spam. Este sitio web utiliza las siguientes cookies de terceros: - Google AdManager y AdSense: Utiliza cookies para mejorar la publicidad. Entre otros fines, suelen utilizarse para segmentarla según el contenido que sea relevante para los usuarios o su ubicación, mejorar los informes de rendimiento de las campañas y evitar mostrar anuncios que los usuarios ya hayan visto. Las cookies no contienen información personal identificable. Consulta cómo utiliza Google la información de sitios web o aplicaciones. y cómo bloquear determinados anuncios. - Google Analytics: Almacena cookies para poder elaborar estadísticas sobre el tráfico y volumen de visitas de esta web. Al utilizar este sitio web está consintiendo el tratamiento de información acerca de usted por Google. Por tanto, el ejercicio de cualquier derecho en este sentido deberá hacerlo comunicando directamente con Google. - Redes sociales: Cada red social utiliza sus propias cookies para que usted pueda pinchar en botones del tipo Me gusta o Compartir.

Cerrar