What do you want to save?
Add Code snippet
New code examples
-
C# 2022-01-30 20:10:40
Cannot implicitly convert type 'int' to 'System.Threading.Tasks.Task<int>'
int count; // use Task.FromResult with retuned value return Task.FromResult(count); // Or make your method async, and await the returned value private async Task<int> ReturnInterger(){} // Or take care of it while declaring the variable var count ... Add solution -
Other 2022-01-30 20:06:36
poi color palette
import java.io.FileOutputStream; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.FillPatternType; import org.apache.poi.ss.usermodel.IndexedColors; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.xssf.usermodel.X... Add solution -
Java 2022-01-30 19:21:59
count vowels in a string java
// There are many ways to do it the one i came up with is this: int count = 0; String sentence = "My name is DEATHVADER, Hello World!!! XD"; char[] vowels = {'a', 'e', 'i', 'o', 'u'}; for (char vowel : vowels) for (char letter : sentence.to... Add solution -
Other 2022-01-30 18:00:10
filling text
Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime mollitia, molestiae quas vel sint commodi repudiandae consequuntur voluptatum laborum numquam blanditiis harum quisquam eius sed odit fugiat iusto fuga praesentium optio, eaque rerum! Provide... Add solution -
Java 2022-01-28 21:07:43
Java Find the greatest common divisor of two positive integers. The integers can be large, so you need to find a clever solution.
import static java.math.BigInteger.valueOf; import java.math.BigInteger; public class GCD { public static int compute(int x, int y) { return valueOf(x).gcd(valueOf(y)).intValue(); } } Code language: Java (java) Add solution -
Other 2022-01-28 08:27:00
bottom navigation bar not filling the width of the screen
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { .... if (mShiftingMode) { final int inactiveCount = count - 1; final int activeMaxAvailable = width - inactiveCount * mInactiveItemMinWidth; ... Add solution
Best helpers
Colocvial
+5
Tjd
+5
Zagi
+5
Tobiak777
+5
Leosar
+5
Sarah witte
+5
Gouri
+5
Gabi Purcaru
+5
Pooria Han
+5
Skry
+5
Mladenka
+5
Yoyo
+5
Thorba
+5
L. Samson
+5