Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java par o impar

int intA = 0; 
if(intA%2 == 0) { //segun la resta de division entre 2, decirme si un numero es par o impar
			
			System.out.println("El numero: "+intA+" es par");
		}else {
			System.out.println("El numero: "+intA+" es impar");
		}
Comment

PREVIOUS NEXT
Code Example
Java :: java stop program 
Java :: how to stop timer in java 
Java :: circular list java 
Java :: how to add image in title bar in android 
Java :: java trim method 
Java :: java string multiply 
Java :: javafx textarea new line with shift+enter 
Java :: localdate to date java 
Java :: spring url parameter 
Java :: assert system.out.println 
Java :: javadoc links to url 
Java :: java format money 
Java :: How to chage font progrmatically 
Java :: java selenium select 
Java :: creating modulu function withou using % java 
Java :: javafx every second 
Java :: java check if divisible 
Java :: Java forName() method 
Java :: java int to hex 
Java :: android fragment fullscreen 
Java :: Private properties in JavaScript ES6 classes 
Java :: convert double to in in java 
Java :: android studio fragment findviewbyid 
Java :: fibonacci in java 
Java :: java get size of matrix 
Java :: java get current time in seconds 
Java :: how to create an array list of ints in java 
Java :: java stream sum integers 
Java :: how to reverse a string in java 
Java :: selenide wait 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =