{"id":2376,"date":"2020-10-02T09:04:49","date_gmt":"2020-10-02T02:04:49","guid":{"rendered":"https:\/\/luckytruedev.com\/learning\/?p=2376"},"modified":"2020-10-02T09:04:51","modified_gmt":"2020-10-02T02:04:51","slug":"contoh-program-konversi-bilangan-ke-penyebutan-java","status":"publish","type":"post","link":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/","title":{"rendered":"Contoh Program Konversi Bilangan ke Penyebutan Java"},"content":{"rendered":"\n<pre class=\"wp-block-syntaxhighlighter-code\">import java.util.Scanner;\n\npublic class KonversiBilangan{\n    String[] angka={\"\",\"Satu\",\"Dua\",\"Tiga\",\"Empat\",\"Lima\",\"Enam\",\"Tujuh\",\"Delapan\",\"Sembilan\",\"Sepuluh\",\"Sebelas\"};\n    \n    public String terbilang(long  x){\n        int y;\n        String bilang=\"\";\n        String[] satuan={\"\",\" Ribu \",\" Juta \",\" Milyar \",\" Trilyun \",\" Quadrilyun \",\" Quintilyun \"};\n        if(x > Math.pow(10, 20)) return \"Bilangan terlalu besar\";\n        for(int i=6;i>0;i--){\n            y =  (int) (x\/Math.pow(10, i*3));\n            if(y > 0){\n                if(y==1 &amp;&amp; i==1) bilang += \" Seribu \"; else bilang += sebut(y) + satuan[i];\n            } x %= Math.pow(10, i*3);\n        }\n        bilang+=sebut((int)x);\n        return bilang;\n    }\n\n    public String sebut(int x){\n        String bilang=\"\";\n        int y = x \/ 100;\n        if(y > 0){\n            bilang = angka[y]+\" Ratus \";\n            if(y == 1)bilang=\"Seratus \";\n            x%=100;\n        }\n        if(x&lt;12)bilang += angka[x];\n        else{\n            y=x\/10;\n            x%=10;\n            if(y==1)\n                bilang +=angka[x] + \" Belas\";\n            else\n                bilang += angka[y]+ \" Puluh \"+ angka[x];\n        }\n        return bilang;\n    }\n\n    public static void main(String[] coedotz) {\n        Scanner input = new Scanner(System.in);\n        System.out.print(\"Masukan Bilangan yang akan disebut: \");\n        System.out.println(new KonversiBilangan().terbilang(input.nextLong()));\n        input.close();\n    }\n}<\/pre>\n<div id=\"lucky-633204375\" class=\"lucky-after-content lucky-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-5605825534849002\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-5605825534849002\" \ndata-ad-slot=\"5317815257\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344],"tags":[],"class_list":["post-2376","post","type-post","status-publish","format-standard","hentry","category-java"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"import java.util.Scanner; public class KonversiBilangan{ String[] angka={&quot;&quot;,&quot;Satu&quot;,&quot;Dua&quot;,&quot;Tiga&quot;,&quot;Empat&quot;,&quot;Lima&quot;,&quot;Enam&quot;,&quot;Tujuh&quot;,&quot;Delapan&quot;,&quot;Sembilan&quot;,&quot;Sepuluh&quot;,&quot;Sebelas&quot;}; public String terbilang(long x){ int y; String bilang=&quot;&quot;; String[] satuan={&quot;&quot;,&quot; Ribu &quot;,&quot; Juta &quot;,&quot; Milyar &quot;,&quot; Trilyun &quot;,&quot; Quadrilyun &quot;,&quot; Quintilyun &quot;}; if(x &gt; Math.pow(10, 20)) return &quot;Bilangan terlalu besar&quot;; for(int i=6;i&gt;0;i--){ y = (int) (x\/Math.pow(10, i*3)); if(y &gt; 0){ if(y==1 &amp;&amp; i==1) bilang += &quot; Seribu &quot;;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"CoedotzMagic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"LuckyTrue Learning: Informasi Teknologi dan Pemograman.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis\" \/>\n\t\t<meta property=\"og:description\" content=\"import java.util.Scanner; public class KonversiBilangan{ String[] angka={&quot;&quot;,&quot;Satu&quot;,&quot;Dua&quot;,&quot;Tiga&quot;,&quot;Empat&quot;,&quot;Lima&quot;,&quot;Enam&quot;,&quot;Tujuh&quot;,&quot;Delapan&quot;,&quot;Sembilan&quot;,&quot;Sepuluh&quot;,&quot;Sebelas&quot;}; public String terbilang(long x){ int y; String bilang=&quot;&quot;; String[] satuan={&quot;&quot;,&quot; Ribu &quot;,&quot; Juta &quot;,&quot; Milyar &quot;,&quot; Trilyun &quot;,&quot; Quadrilyun &quot;,&quot; Quintilyun &quot;}; if(x &gt; Math.pow(10, 20)) return &quot;Bilangan terlalu besar&quot;; for(int i=6;i&gt;0;i--){ y = (int) (x\/Math.pow(10, i*3)); if(y &gt; 0){ if(y==1 &amp;&amp; i==1) bilang += &quot; Seribu &quot;;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/cropped-logo192.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/cropped-logo192.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-10-02T02:04:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-10-02T02:04:51+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/luckytruedev\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@luckytruedev\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis\" \/>\n\t\t<meta name=\"twitter:description\" content=\"import java.util.Scanner; public class KonversiBilangan{ String[] angka={&quot;&quot;,&quot;Satu&quot;,&quot;Dua&quot;,&quot;Tiga&quot;,&quot;Empat&quot;,&quot;Lima&quot;,&quot;Enam&quot;,&quot;Tujuh&quot;,&quot;Delapan&quot;,&quot;Sembilan&quot;,&quot;Sepuluh&quot;,&quot;Sebelas&quot;}; public String terbilang(long x){ int y; String bilang=&quot;&quot;; String[] satuan={&quot;&quot;,&quot; Ribu &quot;,&quot; Juta &quot;,&quot; Milyar &quot;,&quot; Trilyun &quot;,&quot; Quadrilyun &quot;,&quot; Quintilyun &quot;}; if(x &gt; Math.pow(10, 20)) return &quot;Bilangan terlalu besar&quot;; for(int i=6;i&gt;0;i--){ y = (int) (x\/Math.pow(10, i*3)); if(y &gt; 0){ if(y==1 &amp;&amp; i==1) bilang += &quot; Seribu &quot;;\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/cropped-logo192.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#article\",\"name\":\"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis\",\"headline\":\"Contoh Program Konversi Bilangan ke Penyebutan Java\",\"author\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/author\\\/poncoe\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/logo512.png\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/#articleImage\",\"width\":512,\"height\":512,\"caption\":\"logoltdv\"},\"datePublished\":\"2020-10-02T09:04:49+07:00\",\"dateModified\":\"2020-10-02T09:04:51+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#webpage\"},\"articleSection\":\"Java\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/luckytruedev.com\\\/learning\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/category\\\/java\\\/#listItem\",\"name\":\"Java\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/category\\\/java\\\/#listItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/category\\\/java\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#listItem\",\"name\":\"Contoh Program Konversi Bilangan ke Penyebutan Java\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#listItem\",\"position\":3,\"name\":\"Contoh Program Konversi Bilangan ke Penyebutan Java\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/category\\\/java\\\/#listItem\",\"name\":\"Java\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/#organization\",\"name\":\"LuckyTrue Development\",\"description\":\"Media Pembelajaran Gratis\",\"url\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/logo512.png\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#organizationLogo\",\"width\":512,\"height\":512,\"caption\":\"logoltdv\"},\"image\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/instagram.com\\\/luckytruedev\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCoQhnhZonZnLbvdVA6GqNKQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/author\\\/poncoe\\\/#author\",\"url\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/author\\\/poncoe\\\/\",\"name\":\"CoedotzMagic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/afa80ec7c2118829ce4372806e8fb69eb5bed074e57080f8461ca40c8655876d?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"CoedotzMagic\"},\"sameAs\":[\"https:\\\/\\\/instagram.com\\\/coedotzmagic\",\"https:\\\/\\\/tiktok.com\\\/@coedotzmagic\",\"https:\\\/\\\/youtube.com\\\/coedotzmagic\",\"https:\\\/\\\/linkedin.com\\\/in\\\/coedotzmagic\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#webpage\",\"url\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/\",\"name\":\"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis\",\"description\":\"import java.util.Scanner; public class KonversiBilangan{ String[] angka={\\\"\\\",\\\"Satu\\\",\\\"Dua\\\",\\\"Tiga\\\",\\\"Empat\\\",\\\"Lima\\\",\\\"Enam\\\",\\\"Tujuh\\\",\\\"Delapan\\\",\\\"Sembilan\\\",\\\"Sepuluh\\\",\\\"Sebelas\\\"}; public String terbilang(long x){ int y; String bilang=\\\"\\\"; String[] satuan={\\\"\\\",\\\" Ribu \\\",\\\" Juta \\\",\\\" Milyar \\\",\\\" Trilyun \\\",\\\" Quadrilyun \\\",\\\" Quintilyun \\\"}; if(x > Math.pow(10, 20)) return \\\"Bilangan terlalu besar\\\"; for(int i=6;i>0;i--){ y = (int) (x\\\/Math.pow(10, i*3)); if(y > 0){ if(y==1 && i==1) bilang += \\\" Seribu \\\";\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/contoh-program-konversi-bilangan-ke-penyebutan-java\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/author\\\/poncoe\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/author\\\/poncoe\\\/#author\"},\"datePublished\":\"2020-10-02T09:04:49+07:00\",\"dateModified\":\"2020-10-02T09:04:51+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/#website\",\"url\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/\",\"name\":\"LuckyTrue Learning: Media Pembelajaran Gratis\",\"description\":\"Media Pembelajaran Gratis\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/luckytruedev.com\\\/learning\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis","description":"import java.util.Scanner; public class KonversiBilangan{ String[] angka={\"\",\"Satu\",\"Dua\",\"Tiga\",\"Empat\",\"Lima\",\"Enam\",\"Tujuh\",\"Delapan\",\"Sembilan\",\"Sepuluh\",\"Sebelas\"}; public String terbilang(long x){ int y; String bilang=\"\"; String[] satuan={\"\",\" Ribu \",\" Juta \",\" Milyar \",\" Trilyun \",\" Quadrilyun \",\" Quintilyun \"}; if(x > Math.pow(10, 20)) return \"Bilangan terlalu besar\"; for(int i=6;i>0;i--){ y = (int) (x\/Math.pow(10, i*3)); if(y > 0){ if(y==1 && i==1) bilang += \" Seribu \";","canonical_url":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#article","name":"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis","headline":"Contoh Program Konversi Bilangan ke Penyebutan Java","author":{"@id":"https:\/\/luckytruedev.com\/learning\/author\/poncoe\/#author"},"publisher":{"@id":"https:\/\/luckytruedev.com\/learning\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/logo512.png","@id":"https:\/\/luckytruedev.com\/learning\/#articleImage","width":512,"height":512,"caption":"logoltdv"},"datePublished":"2020-10-02T09:04:49+07:00","dateModified":"2020-10-02T09:04:51+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#webpage"},"isPartOf":{"@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#webpage"},"articleSection":"Java"},{"@type":"BreadcrumbList","@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/luckytruedev.com\/learning#listItem","position":1,"name":"Home","item":"https:\/\/luckytruedev.com\/learning","nextItem":{"@type":"ListItem","@id":"https:\/\/luckytruedev.com\/learning\/category\/java\/#listItem","name":"Java"}},{"@type":"ListItem","@id":"https:\/\/luckytruedev.com\/learning\/category\/java\/#listItem","position":2,"name":"Java","item":"https:\/\/luckytruedev.com\/learning\/category\/java\/","nextItem":{"@type":"ListItem","@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#listItem","name":"Contoh Program Konversi Bilangan ke Penyebutan Java"},"previousItem":{"@type":"ListItem","@id":"https:\/\/luckytruedev.com\/learning#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#listItem","position":3,"name":"Contoh Program Konversi Bilangan ke Penyebutan Java","previousItem":{"@type":"ListItem","@id":"https:\/\/luckytruedev.com\/learning\/category\/java\/#listItem","name":"Java"}}]},{"@type":"Organization","@id":"https:\/\/luckytruedev.com\/learning\/#organization","name":"LuckyTrue Development","description":"Media Pembelajaran Gratis","url":"https:\/\/luckytruedev.com\/learning\/","logo":{"@type":"ImageObject","url":"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/logo512.png","@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#organizationLogo","width":512,"height":512,"caption":"logoltdv"},"image":{"@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#organizationLogo"},"sameAs":["https:\/\/instagram.com\/luckytruedev\/","https:\/\/www.youtube.com\/channel\/UCoQhnhZonZnLbvdVA6GqNKQ"]},{"@type":"Person","@id":"https:\/\/luckytruedev.com\/learning\/author\/poncoe\/#author","url":"https:\/\/luckytruedev.com\/learning\/author\/poncoe\/","name":"CoedotzMagic","image":{"@type":"ImageObject","@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/afa80ec7c2118829ce4372806e8fb69eb5bed074e57080f8461ca40c8655876d?s=96&d=retro&r=g","width":96,"height":96,"caption":"CoedotzMagic"},"sameAs":["https:\/\/instagram.com\/coedotzmagic","https:\/\/tiktok.com\/@coedotzmagic","https:\/\/youtube.com\/coedotzmagic","https:\/\/linkedin.com\/in\/coedotzmagic"]},{"@type":"WebPage","@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#webpage","url":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/","name":"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis","description":"import java.util.Scanner; public class KonversiBilangan{ String[] angka={\"\",\"Satu\",\"Dua\",\"Tiga\",\"Empat\",\"Lima\",\"Enam\",\"Tujuh\",\"Delapan\",\"Sembilan\",\"Sepuluh\",\"Sebelas\"}; public String terbilang(long x){ int y; String bilang=\"\"; String[] satuan={\"\",\" Ribu \",\" Juta \",\" Milyar \",\" Trilyun \",\" Quadrilyun \",\" Quintilyun \"}; if(x > Math.pow(10, 20)) return \"Bilangan terlalu besar\"; for(int i=6;i>0;i--){ y = (int) (x\/Math.pow(10, i*3)); if(y > 0){ if(y==1 && i==1) bilang += \" Seribu \";","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/luckytruedev.com\/learning\/#website"},"breadcrumb":{"@id":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/#breadcrumblist"},"author":{"@id":"https:\/\/luckytruedev.com\/learning\/author\/poncoe\/#author"},"creator":{"@id":"https:\/\/luckytruedev.com\/learning\/author\/poncoe\/#author"},"datePublished":"2020-10-02T09:04:49+07:00","dateModified":"2020-10-02T09:04:51+07:00"},{"@type":"WebSite","@id":"https:\/\/luckytruedev.com\/learning\/#website","url":"https:\/\/luckytruedev.com\/learning\/","name":"LuckyTrue Learning: Media Pembelajaran Gratis","description":"Media Pembelajaran Gratis","inLanguage":"en-US","publisher":{"@id":"https:\/\/luckytruedev.com\/learning\/#organization"}}]},"og:locale":"en_US","og:site_name":"LuckyTrue Learning: Informasi Teknologi dan Pemograman.","og:type":"article","og:title":"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis","og:description":"import java.util.Scanner; public class KonversiBilangan{ String[] angka={&quot;&quot;,&quot;Satu&quot;,&quot;Dua&quot;,&quot;Tiga&quot;,&quot;Empat&quot;,&quot;Lima&quot;,&quot;Enam&quot;,&quot;Tujuh&quot;,&quot;Delapan&quot;,&quot;Sembilan&quot;,&quot;Sepuluh&quot;,&quot;Sebelas&quot;}; public String terbilang(long x){ int y; String bilang=&quot;&quot;; String[] satuan={&quot;&quot;,&quot; Ribu &quot;,&quot; Juta &quot;,&quot; Milyar &quot;,&quot; Trilyun &quot;,&quot; Quadrilyun &quot;,&quot; Quintilyun &quot;}; if(x &gt; Math.pow(10, 20)) return &quot;Bilangan terlalu besar&quot;; for(int i=6;i&gt;0;i--){ y = (int) (x\/Math.pow(10, i*3)); if(y &gt; 0){ if(y==1 &amp;&amp; i==1) bilang += &quot; Seribu &quot;;","og:url":"https:\/\/luckytruedev.com\/learning\/contoh-program-konversi-bilangan-ke-penyebutan-java\/","og:image":"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/cropped-logo192.png","og:image:secure_url":"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/cropped-logo192.png","article:published_time":"2020-10-02T02:04:49+00:00","article:modified_time":"2020-10-02T02:04:51+00:00","article:publisher":"https:\/\/facebook.com\/luckytruedev\/","twitter:card":"summary","twitter:site":"@luckytruedev","twitter:title":"Contoh Program Konversi Bilangan ke Penyebutan Java | LuckyTrue Learning: Media Pembelajaran Gratis","twitter:description":"import java.util.Scanner; public class KonversiBilangan{ String[] angka={&quot;&quot;,&quot;Satu&quot;,&quot;Dua&quot;,&quot;Tiga&quot;,&quot;Empat&quot;,&quot;Lima&quot;,&quot;Enam&quot;,&quot;Tujuh&quot;,&quot;Delapan&quot;,&quot;Sembilan&quot;,&quot;Sepuluh&quot;,&quot;Sebelas&quot;}; public String terbilang(long x){ int y; String bilang=&quot;&quot;; String[] satuan={&quot;&quot;,&quot; Ribu &quot;,&quot; Juta &quot;,&quot; Milyar &quot;,&quot; Trilyun &quot;,&quot; Quadrilyun &quot;,&quot; Quintilyun &quot;}; if(x &gt; Math.pow(10, 20)) return &quot;Bilangan terlalu besar&quot;; for(int i=6;i&gt;0;i--){ y = (int) (x\/Math.pow(10, i*3)); if(y &gt; 0){ if(y==1 &amp;&amp; i==1) bilang += &quot; Seribu &quot;;","twitter:image":"https:\/\/luckytruedev.com\/learning\/wp-content\/uploads\/2019\/01\/cropped-logo192.png"},"aioseo_meta_data":{"post_id":"2376","title":null,"description":"","keywords":"","keyphrases":null,"primary_term":null,"canonical_url":"","og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 07:49:14","updated":"2025-06-04 08:11:52","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/2376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/comments?post=2376"}],"version-history":[{"count":1,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/2376\/revisions"}],"predecessor-version":[{"id":2377,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/posts\/2376\/revisions\/2377"}],"wp:attachment":[{"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/media?parent=2376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/categories?post=2376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luckytruedev.com\/learning\/wp-json\/wp\/v2\/tags?post=2376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}