What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-27 21:35:04
Sort string array in case insensitive order and case sensitive order java
import java.util.Arrays; public class SortStringArrayDemo { public static void main(String[] args) { String[] fruits = new String[5]; fruits[0] = "Mango"; fruits[1] = "cherries"; fruits[2] = "Apple&q... Add solution -
Java 2022-03-27 20:40:19
TreeSet headSet(E toElement) method in java
import java.util.Iterator; import java.util.TreeSet; public class TreeSetHeadSetEToElementMethodExample { public static void main(String[] args) { TreeSet<Integer> ts = new TreeSet<Integer>(); TreeSet<Integer> hs = new ... Add solution -
Java 2022-03-27 16:45:39
TreeMap clear() method in java
import java.util.TreeMap; public class TreeMapClearMethodExample { public static void main(String[] args) { TreeMap<Integer, String> tm = new TreeMap<Integer, String>(); tm.put(8, "red"); tm.put(12, "blue... Add solution -
Other 2022-03-27 16:25:48
Java Super Power java
import javax.swing.JOptionPane;public class SuperPower{public static void main(String[] args) {String power;power = JOptionPane.showInputDialog("What is your super power?");power = power.toUpperCase();JOptionPane.showMessageDialog(null,pow... Add solution -
C# 2022-03-27 16:05:25
Find Number of Repetitions of Substring
using System; using System.Linq; public class Program { public static int NumberOfRepeats(string str) { int length = str.Length; int checkLength = 2; while (checkLength < length) { if (length % checkLength == 0) { var times ... Add solution -
C# 2022-03-27 12:05:29
c# program for cash withdraw and cash deposit using oop
/* * C# Program to Display the ATM Transaction */ using System; class program { public static void Main() { int amount = 1000, deposit, withdraw; int choice, pin = 0, x = 0; Console.WriteLine("Enter Your Pin N... Add solution -
Javascript 2022-03-27 11:55:30
github react starter disques
import React from 'react'; import PropTypes from 'prop-types'; const SHORTNAME = 'example'; const WEBSITE_URL = 'http://www.example.com'; function renderDisqus() { if (window.DISQUS === undefined) { var script = document.createElement('script'); ... Add solution -
Java 2022-03-26 13:40:11
generate all prime number less than n java
/** Author: Jeffrey Huang As far as I know this is almost the fastest method in java for generating prime numbers less than n. A way to make it faster would be to implement Math.sqrt(i) instead of i/2. I don't know if you could implement sieve of eratost... Add solution
Best helpers
Mikemay
+5
Stobor
+5
Tilak De
+5
John wilson
+5
Reactormonk
+5
Vishnu Nair
+5
Martinako
+5
Jay Cossey
+5
Panky1986
+5
Thiagoh
+5