create an empty array in java
public static void main(String args[])
{
int array[] = new int[4];
int number = 5, i = 0,j = 0;
while (i<4){
array[i]=number;
i=i+1;
}
while (j<4){
System.out.println(array[j]);
j++;
}
}
Also in Java:
- change number into array in java
- create an empty array in java
- android findviewbyid from item.actionView returns null
- java hello world
- boolean java.lang.String.equals(java.lang.Object)' on a null object reference
- how to count number of words in a string
- clear stringbuilder java
- Method used for getting metadata of a database in jdbc
- copy file with byte java
- ceil function in java
- log4j with spring boot restful services
- fragment button nullpointerexception
- java call another constructor
- java 8 collect multiple lists into single list
- how to add a list in a list java
- spring code in java
- time conversion solution
- JavaFX mouse over effe
- java enum
- java download file from url to string
- how to import an arraylist in java
- java map foreach
- java arraylist
- java get icon for file type