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.


We are displaying some records. Which have been tested by the student developer and global programmers. You can take those examples to test our tool.

    Showing 1 to 10 of 31091 entries.
S NoCode
1import java.util.*; class Solution { public int solution(int X, int[] A) { // write your...
2import; import; import; import java...
3import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; import or...
4class Solution { public int wiggleMaxLength(int[] nums) { if (nums.length < 2) ...
5package com.navas.test; import java.util.Scanner; class AliceAndBob { public static void main...
6import*; import java.util.*; class Solution { public static void main(String[] argv) { ...
7import; import; import java.awt.Color; import java.awt.image.Buffere...
8// Tested Code import java.util.*; class Hello { public static void main(String[] args) { //Y...
9import java.util.Scanner; class MatrixTranspose { public static void main(String[] args) { ...
10// Tested Code import; import; import
S NoFileNameCode


We are provide various useful category to solve programming problems.

Data structure animation

We are providing animation tool for Tree, Linked list and some common sorting algorithms to understand basic and advance concept of data structure.

Try Animation


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

1     23 Day ago
Meepa C     98 Day ago
Doesnt work
Pp021     145 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!