Skip to main content

Java to Csharp (c#) converter

This is a transpiler, which syntactically converts Java code to C# equivalent code. This is simplest and interactive code converter which is support java 8 packages.


Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment     25 Day ago
This seems to be a non-working page, I want to transfer a piece of java code, but when I paste into the input box, nothing happens.
Then I realized that it was my VPN problem.
Jane     35 Day ago
It doesn't work at all
1     176 Day ago
Meepa C     251 Day ago
Doesnt work
Pp021     298 Day ago
// file : DiscordLocale
import java.util.HashMap;

public class DiscordLocale {
	private static String[][] LOCALE = {{"da", "Danish, Denmark"}, {"de", "German, Germany"}, {"en-GB", "English, United Kingdom"}, {"en-US", "English, United States"}, {"es-ES", "Spanish, Spain"}, {"fr", "French, France"}, {"hr", "Croatian, Croatia"}, {"lt", "Lithuanian, Lithuania"}, {"hu", "Hungarian, Hungary"}, {"nl", "Dutch, Netherlands"}, {"no", "Norwegian, Norway"}, {"pl", "Polish, Poland"}, {"pt-BR", "Portuguese, Brazilian, Brazil"}, {"ro", "Romanian, Romania"}, {"fi", "Finnish, Finland"}, {"sv-SE", "Swedish, Sweden"}, {"vi", "Vietnamese, Vietnam"}, {"tr", "Turkish, Turkey"}, {"cs", "Czech, Czechia, Czech Republic"}, {"el", "Greek, Greece"}, {"bg", "Bulgarian, Bulgaria"}, {"ru", "Russian, Russia"}, {"uk", "Ukranian, Ukraine"}, {"th", "Thai, Thailand"}, {"zh-CN", "Chinese, China"}, {"ja", "Japanese (weeb 100%)"}, {"zh-TW", "Chinese, Taiwan"}, {"ko", "Korean, Korea"}};
	private static HashMap<String, String> localeMap = new HashMap<>();
	public static String fromShort(String locale) {
		return localeMap.getOrDefault(locale, "Locale Not found.");
	public void load() {
		for (int i = 0; i < LOCALE.length; i++) {
			localeMap.put(LOCALE[i][0], LOCALE[i][1]);
// Write note here
static {
static method won't work!