Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Java
2021-10-23 21:15:14
how to change double to int in java
class Scratch{ public static void main(String[] args){ double decimal = 5.7; System.out.println( (int) decimal ); //casting System.out.println( Math.round(decimal * 10) / (double) 10); //Math.round() System.out.println(...
Add solution
Java
2021-10-22 10:00:12
java convert string to int and compare
Collections.sort(data, new Comparator<TXCartData>() { @Override public int compare(TXCartData lhs, TXCartData rhs) { int n1=Integer.parseInt(lhs.rowId); int n2=Integer.parseInt(rhs.rowId); if (n1&...
Add solution
Java
2021-10-21 09:59:09
java string to int
String myString = "1234"; int foo = Integer.parseInt(myString);
Add solution
Other
2021-10-21 04:58:12
como pasar una imagen que esta en url que viene de una base de datos a imageview android
imageView.setImageResource(Integer.parseInt(Negocio.getRutaimagen()));
Add solution
Javascript
2021-10-20 14:57:08
convert a string into an integer
String myString = "1234"; int foo = Integer.parseInt(myString);
Add solution
Java
2021-10-20 14:34:18
how to take space separated input in java
String s[]= scanner.nextLine().split(" ");for(int i =0 ;i < s.length;i++){ a[i]= Integer.parseInt(s[i]);}
Add solution
C++
2021-10-19 09:03:12
binary to decimal
import java.util.Scanner; public class BinaryToDecimalDemo { public static void main(String[] args) { int number, decimal = 0, a = 0; Scanner sc = new Scanner(System.in); System.out.println("Please enter binary number: "...
Add solution
Python
2021-10-18 00:51:09
java to python
import javax.swing.*; public class Exe4{ //metodo para calculo de Potencia public static int exp(int n1,int n2) { int i=0, total=0; while(i<=n2) { total = n1*n2; i++; } return total; } //metodo principal public sta...
Add solution
Other
2021-10-17 19:56:07
nintendo switch
import java.util.*; public class KboatDayName { public static void main(String args[]) { int monthDays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; String dayNames[] = {"MONDAY", "TUESDAY", "WEDNESDA...
Add solution
Other
2021-10-17 11:33:10
cast to int elixir
Check Integer.parse/1 and Float.parse/1.
Add solution
‹
1
2
3
4
5
6
7
8
9
10
11
›
Best helpers
daily
weekly
monthly
for 3 months
The 313137
+5
Moez
+5
Kathrin
+5
Moradnejad
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.