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);
    }

27 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