Friday, July 31, 2020

JAVA Code to convert Bytes into MB

Here is the JAVA Code to convert bytes in MB upto 1 decimal place.

public void getSizeInMB()
    {
        long sizeinBytes = 200*1024;
                long sizeInKB = sizeinBytes/1024;
                long sizeInMBInt = sizeInKB/1024;
                float sizeInMB = sizeInKB/1024.0f;
                String size = sizeInMB+"";

                int k = size.indexOf('.');
                size = sizeInMBInt+"."+size.charAt(k+1);
   
      System.out.print(size);
    }

42 comments:

  1. 토토사이트 What an interesting story! 먹튀검증I'm glad I finally found 안전놀이터what I was looking for.토토사이트 Thank you for letting me see this useful information. 꽁머니There's a story on my site that you might find interesting. 꽁머니I really hope you visit once.안전놀이터 I will also visit this site often.스포츠중계 In addition, https://mtboan.com/COVID-19 is becoming a problem all over the world these days. 먹튀보안관 I hope there's no harm to you and your family. 먹튀가디언 Thank youhttps://twiddeo.com/And, 먹튀검증토토사이트 Already 2020 is nearing the end. 메이저토토사이트 There were so many incidents this year. 사설토토 I am still feeling a lot of 토토사이트 inconvenience and birds due to 메이저토토사이트 the special virus. 먹튀사이트조회 It's already getting 토토사이트 a lot colder, 안전놀이터 so make sure to 먹튀검증 pack warm clothes. 먹튀요기요 Please spend the rest of https://mtygy.com/ your life happy. 메이저놀이터 Then, have a nice day!놀이터토토

    ReplyDelete
  2. It is really what I wanted to see hope in future you will continue for sharing such a excellent post. 먹튀검증

    ReplyDelete
  3. hi sir you have written a very important something. I like your every point you dropped 슈어벳

    ReplyDelete
  4. "Hi there, I enjoy reading all of your article.
    I like to write a little comment to support you." 토토사이트

    ReplyDelete
  5. "It's very effortless to find out anyy topic onn net as compared to books, ass I found this post
    at this web page." 먹튀폴리스

    ReplyDelete
  6. "Nice post. I used to be checking constantly this blog and I am
    inspired! Very useful information particularly the remaining section �� I maintain such info
    a lot. I was looking for this particular info for a very lengthy time.

    Thank you and best of luck." 먹튀폴리스

    ReplyDelete
  7. Very good post.Really looking forward to read more. Really Great. 토토

    ReplyDelete
  8. "Really enjoyed this blog article.Much thanks again. Cool.

    " 토토

    ReplyDelete
  9. "Excellent post. I was checking continuously this blog and I am impressed!
    Very helpful info specially the last part :) I care for such info a lot.
    I was seeking this certain info for a long time.
    Thank youu and good luck." 메이저사이트

    ReplyDelete
  10. Whenever I have some free time, I visit blogs to get some useful info. Today, I found your blog with the help of Google ; I found it one of the most informative blog 토토사이트

    ReplyDelete
  11. "Really enjoyed this blog article.Much thanks again. Cool.

    " 메이저사이트

    ReplyDelete
  12. "Every weekend i used to visit this web page, because i want enjoyment,
    for the reason that this this web site conations really nice funny material too." 파워볼사이트

    ReplyDelete
  13. This was really an interesting topic and I kinda agree with what you have mentioned here! สล็อตแตกง่าย

    ReplyDelete
  14. Thank you so much for providing good quality information. 먹튀검증업체 I think it would not have been easy to collect this information and organize it in an easy to understand way. I'll add it to my bookmarks so I can visit it often! And I will share it with my acquaintances. And there is a lot of useful information on our website too, so please take a look and take a look. Then have a good day. 먹튀검증업체

    ReplyDelete
  15. I finally found what I was looking for! I'm so happy. 안전한놀이터 Your article is what I've been looking for for a long time. I'm happy to find you like this. Could you visit my website if you have time? I'm sure you'll find a post of interest that you'll find interesting.

    ReplyDelete
  16. Your article has answered the question I was wondering about! I would like to write a thesis on this subject, but I would like you to give your opinion once :D카지노슬롯


    ReplyDelete
  17. Hello, I read the post well. 메이저토토 It's a really interesting topic and it has helped me a lot. In fact, I also run a website with similar content to your posting. Please visit once

    ReplyDelete
  18. While looking for articles on these topics, I came across this article on the site here. As I read your article, I felt like an expert in this field. I have several articles on these topics posted on my site. Could you please visit my homepage? 토토사이트모음

    ReplyDelete
  19. I found this article on this site while looking for an article on this topic. Reading your post made me feel like an expert in this field. There are several articles on these topics posted on my site. Please visit my website once. 메리트카지노

    ReplyDelete
  20. Captivating post. I Have Been contemplating about this issue, so an obligation of appreciation is all together to post. Completely cool post.It 's greatly extraordinarily OK and Useful post.Thanks 사설토토사이트

    ReplyDelete
  21. This site seems to inspire me a lot. Thank you so much for organizing and providing this quality information in an easy to understand way. I think that a healthy era of big data can be maintained only when such high-quality information is continuously produced. And I, too, are working hard to organize and provide such high-quality information. It would be nice to come in once and get information.

    Also visit my site:스포츠토토

    ReplyDelete
  22. शेअर बाजार पुस्तक | Share Market Book in Hindi PDF download link is given at the bottom of this article. You can direct download

    ReplyDelete
  23. Cita previa INEM SEPE. Para tu comodidad, sin que te sea necesario que acudas a la Oficina de Empleo, el SEPE pone a tu disposición en esta página web actualizada continua mente.

    ReplyDelete
  24. El mapamundi (Viene del latín medieval mappa mundi, «mapa del mundo»? es una representación cartográfica (mapa) de toda la superficie terrestre.

    ReplyDelete
  25. Busca en el mapa Europeo la ubicación de cada uno de los países de los Mapa de Europa por los que te preguntan. Amplía o reduce el mapa con el zoom y ajústalo bien.

    ReplyDelete
  26. La para tener mejor informacion sober como solicitar Cita Previa DNI a fin de obtener o renovar tanto su DNI como su Pasaporte.

    ReplyDelete
  27. This is a great post I seen because of offer it. It is truly what I needed to see seek in future you will proceed after sharing such a magnificent post. cómo hacer

    ReplyDelete
  28. Your article has answered the question I was wondering about! I would like to write a thesis on this subject, but I would like you to give your opinion once :Dsòng bạc

    ReplyDelete
  29. Your ideas inspired me very much. 메이저안전놀이터 It's amazing. I want to learn your writing skills. In fact, I also have a website. If you are okay, please visit once and leave your opinion. Thank you.

    ReplyDelete
  30. I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates. مباريات اليوم بث مباشر

    ReplyDelete
  31. You made some good points there. I did a Google search about the topic and found most people will believe your blog. 메이저사이트

    ReplyDelete
  32. 온라인카지노January 7, 2022 at 8:21 PM

    It's too bad to check your article late. I wonder what it would be if we met a little faster. I want to exchange a little more, but please visit my site 온라인카지노 and leave a message!!


    ReplyDelete
  33. stunning, great, I was wondering how to cure skin break out ordinarily. likewise, found your site by google, took in an extraordinary arrangement, now i'm fairly clear. I've bookmark your site and moreover incorporate rss. keep us invigorated. مسلسلات رمضان

    ReplyDelete
  34. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place. مشاهدة أفلام

    ReplyDelete
  35. Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly.  سيما لايت

    ReplyDelete
  36. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon 먹튀검증업체 I would like to write an article based on your article. When can I ask for a review?!

    ReplyDelete
  37. This is very interesting, You are a very skilled blogger. I've joined your rss feed and look forward to seeking more of your wonderful 메이저토토. Also, I have shared your website in my social networks!

    ReplyDelete
  38. Which is some inspirational stuff. Never knew that opinions might be this varied. Thank you for all the enthusiasm to provide such helpful information here. 온라인바카라

    ReplyDelete
  39. ufabet เว็บแทงบอลออนไลน์ ที่ได้มาตรฐานระดับโลก เว็บที่ดีที่สุดในประเทศไทย แทงบอลออนไลน์ คาสิโน บาคาร่า สล๊อต

    ReplyDelete
  40. เว็บ betflix มีหลากหลายเกมสล็อต ไม่ว่าจะเป็น สล็อต joker, pgslotgame , super-slot ที่หาเล่นได้ทั้งหมดจาก betflixsupervip ของเรา ทางเราเปิดบริการตลอด 24 ชั่วโมง ฝากถอนได้ดั่งใจ

    ReplyDelete
  41. ที่สุดแห่ง เว็บ biogaming บริการตลอด 24 ชั่วโมง บริการด้านเกมคาสิโนหลากหลายเช่น บาคาร่าออนไลน์ รูเร็ท แบล็คแจ็ค เสือมังกร ไฮโล และอื่นๆอีกมากมาย ที่มาพร้อมกับโปรโมชั่นโดนใจเน้นๆ ที่นี่ที่

    ReplyDelete