Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
epeenconverter
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String hex = "FF22AA"; int r = (int) Long.parseLong((hex.substring (0, 2)), 16)/32; int g = (int) Long.parseLong((hex.substring (2, 4)), 16)/32; int b = (int) Long.parseLong((hex.substring (4, 6)), 16)/32; String epeen = "8"; for(int i = 0; i < r; i++){ epeen += "="; } for(int j = 0; j < g; j++){ epeen += "-"; } epeen += "D"; for(int k = 0; k < b; k++){ epeen += "~"; } System.out.println(epeen); } }
run
|
edit
|
history
|
help
0
Municipiu_Problema_2_Palindrome
motifCatur
update
default constructor
Airbnb-QueueLinkedList-2/3
Basic
Java consecutive repeated cha
Switch case example
Java # Bir Cumlenin uzunluğu
js