Search:

Type: Posts; User: joepistone

Search: Search took 0.15 seconds.

  1. Re: Write a Java program to swap two variables.

    You can do it without a temp var.


    class Main {
    public static void main(String[] args) {

    double a = 5.6;
    double b = -4.9;
    System.out.println("a: " + a);
    ...
  2. array creation and inizialization in a class

    Hi everybody, just registered. I'm studying java and thers is something about array creation and inizialization that seems weird to me.



    class Test {
    private int[] array;
    array = new...
Results 1 to 2 of 2