Tags » NetBeans

Exception in thread "main" java.lang.NullPointerException (Java, Netbeans)

public static void main(String[] args) {
    String[][] alunos = new String[2];
    String[][] grelhaAvaliacao = null;
    double classificacoes[][] = null;
    int op, numAl = 0;
    do {
        op = menu();
        switch(op) {
            case 1:
                numAl = carregarFicheiro(alunos, numAl);
                break;
            case 2:
                numAl = lerInformação(alunos, numAl);
                break;
            case 3:
                escreverFicheiroAlunos(alunos, numAl);
                break;
            case 0:
                break;
            default:
                System.out.println("Introduza uma opção válida!");
                break;
        }
    } while(op != 0);
}

public static int lerInformação(String[][] alunos, int numAl) {
    do {
        System.out.print("Nome do Aluno: ");
        alunos[0] = ler.next();
        System.out.print("Número do Aluno: ");
        ler.nextLine();
        alunos[1] = ler.next();
        numAl++;
    } while(numAl < alunos.length && (!alunos[0].equalsIgnoreCase("FIM")));
    return numAl;
}
… 233 more words
Recent Questions - Stack Overflow

GitHub - the best choice for a team project

As the majority of the people in the team use NetBeans we’ve settled for using this IDE and uploading the project to the team’s page – github.com/ilof. 169 more words

Fetching from our database via our web application

The first task for the back end team (Currently Stan and Yogi) was to get our web application to read data from our database. To do this, we created an AllCocktails.jsp page that would be accessed when the browser is directed towards /ilofcocktails/Cocktails. 252 more words

Applied Computing

How to write a Media Player in JavaFX using NetBeans IDE – Part 2

In my previous article “How to write a Media Player in JavaFX using NetBeans IDE – Part 1 “ I showed you how to to create Media Player where in this post I am going to show you how to add all the functionality into it. Click to Read>>

JavaFX

NetBeans 8 & Wildfly Application Server 8 Configuration

1.   Download NetBeans 8 from here.

2.   Download latest Wildfly Application Server 8 from here.

3.   Download Netbeans Wildfly Plugin from here

4.   Install Plugin : NetBeans -> Tools -> Plugins -> Downloaded -> Add Plugins… 57 more words

Netbeans

JSF Primefaces Application on Wildfly 8 using Netbeans 8

How to configure Netbeans 8 & Wildfly 8 please read my Blog here

1.   Download Primefaces Library from here (Comunity Version)

2.   Create New Project : Right mouse click on Project’s Panel… 91 more words

Netbeans