QUOTE(pbl @ 12 Jun, 2008 - 08:46 PM)

QUOTE(mensahero @ 12 Jun, 2008 - 08:37 PM)

QUOTE
Mensahero I'll give you a "thank" for that one
This one will think that DIC answer quite fast
.. Just recently I've tried to solve one simple C problem.. and when I got the answer.. the thread already has 16 replies.. wow.. DIC is really fast.. lmao..

I wish I was working in Java but the only thing I've found is C programming where you try to fit 65KB of code on 64KB boards.... at least being active here ler me keep my Java knowledge (actually learned a lot from DIC problems)
well javas programing has a following steps
1) is the package declearation
2) import deleceration
3)interface statement
4)class definations
5) main class name
just define a package like this code:
filename code.java
CODE
package student;
import java.util.*;
import java.io.*;
imort java.lang.*;
class students
{
int a;
int b;
int c;
string len,len1;
public int getdata()
{
Scanner s = new Scanner(System.in);
System.out.println("Enter a and b");
len=s.nextline();
len1=s.nextline();
a=Integer.valueOf(len);
b=Integer.valueOf(len1);
c=a+b;
return c;
}
}
to use this function just use
import student.students;
i hope this example is useful
This post has been edited by prajayshetty: 13 Jun, 2008 - 07:58 AM