Software development tools

&lt;content

NetBeans is an IDE, Integrated Development (for its acronym in English) that lets you create applications not only in the Java programming language, but also in a variety of languages in which support is being created environment.

NetBeans allows us to create java projects of various types (Desktop, Web, Mobile). It also has support for other languages. These projects have a defined structure, allowing the IDE proper management. Create a new project is very simple, you can make from the menu / File New Project.



Now select the type of project We choose Java. Java Aplication. Because we want to create a desktop project.



After we name the project, project location, project folder and and if you want to create the main class. Once all this we created the project and made structure and basic java code, which makes default.



An example of java program that could do in netbeans would be:

"A program in JAVA such that data 270 given as integers (keyed in), for the sum of odd numbers and the average of even numbers. Facts: NUM1, NUM2,. . ., NUM270 Where: Numi is an integer variable that represents the integer i is entered (1 ≤ i ≤ 270)"

import java.util.*;

public class ejercicio301 {

public static void main(String[] args) {

Scanner teclado=new Scanner(System.in);

float num,i,impar=0,par=0,ppar=0,residuo;

for(i=1;i<=270;++i)

{

System.out.print("ingrese digito "+i+": ");

num=teclado.nextInt;

residuo=num%2;

if(residuo==0)

{

par=par+num;

ppar=ppar+1;

}

if(residuo!=0)

impar=impar+num;

}

par=par/ppar;

System.out.println("los numeros pares fueron: "+ppar);

System.out.println("el promedio de los numeros pares es: " +par);

System.out.println("la suma de los numeros impares son: "+impar);

} }

After the program ended the button is pressed run to see if the program works correctly.

Resources: http://programacionparajava.blogspot.com.es/p/primeros-programas-en-java-para-novatos.html