The JAVA club

coolshano

Well-known member
  • Sep 1, 2007
    14,327
    618
    113
    N/A
    Machanla mage me dawas wala mama tikak busy nisa club ekata mukuth upload karanna bari wei, But i like u guys to keep the club active by discussing Java lessons, cordings, Exams , fee, and if can upload your videos about JAVA...
     

    TDM

    Well-known member
  • Jan 7, 2007
    2,347
    25
    48
    36
    Kandy
    ¤--bACarDi--¤ said:
    Machanzla Java is good for Mobiles & Other devices...
    Bt on PCs C# is da best language now.....Study it...

    i agree wit u a bit...reason that the java isnt that much gud wit the computer is that the JAVA eats ur computers recorces......bt C dnt do that dat much.....but remember if you write a clean and simple programs with correct programming teqniques..JAVA is very much gud..coz its a very mobility language..and it is very power full..and also JAVA functioning verry well with almost every kind of systems.....( windows,unix...etc)...

    i think if you want to b a gud programmer you hav to learn both...:yes:
     

    rochel1977

    Well-known member
  • May 15, 2006
    11,466
    2,673
    113
    AKL, NZ and Kandy
    menna magen podi simple program ekak mama liyapu. meka Jcreator wala compile karala balanda. Copy paste karala balanda epa. just type and get the idea.

    Code:
    program that inputs a number and prints whether the number is positive number, negative number or zero. Repeat for 5 numbers.
    
    eg1: Numbers.java
    
    import java.util.Scanner;
    
    public class Numbers
    {
    	public static void main (String [] a) 
    	{
    		Scanner input = new Scanner(System.in);
    			
    		for(int j=0; j<5; j++)
    		{	
    			System.out.println("Enter a number:");
    			double n = input.nextDouble();
    		
    			if(n>0)
    				System.out.println(n +" is a positive number");
    			else if(n<0)
    				System.out.println(n +" is a negative number");
    			else
    				System.out.println(n +" is a zero number");
    		}
    		
    		System.out.println("Type your name:");
    		String name = input.nextLine();
    		
    		System.out.println("Hello "+ name);
    		
    	}
    }

    errors thibunoth methana post karanda. ekathu wela karamu. :yes: