No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
import java.io.*; class ArrayElementMax { public static void main(String []args) throws IOException { int i=0; int n; System.out.println("Enter the size of the array"); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); n=Integer.parseInt(br.readLine()); int a[]=new int [n]; for(i=0;i<a.length;i++) { System.out.println("Enter the array element"); a[i]=Integer.parseInt(br.readLIne()); } int max=0; for(int i=0;i<a.length;i++) { if(a[i]>max) { max=a[i]; } } …
does the Servlet Container call the destroy() method of a servlet class even if we don't define the destroy() method in Servlet?
i want the insert statement in jdbc for the following name gs al ts madhu 1000 500 sud 2000 600 now i want to access gs and al from the database table by using select statement now i want to add gs and al like totalsalary=gs+al; now i want to …
i am getting a problem in updating my database. actually i am accessing two colums from my table and adding these two numbers , and the result i want to insert in the tables 3rd column The statement i am using to access two columns String str="select * from emp" …
An inner class is nothing but a member of its enclosing class. Any member of class can be declated with access modifiers like public, private, protected. Access modifiers make the member to be visible to others or not
dude, i got your doubt. You want to send one object reference as a parameter to a method in another class. But both the classes must have an inheritance relationship in order to perform dynamic polymorphism ex. class A { void m1() { -- } } class B { A …
Actually i am doing a ssc project. The student will enter his roll no in a web page which is designed by html. HIs marks subject wise have to be displayed wth the total marks . this will be done by using servlets and my html code is [code] 1, …
i am doing an acadamic java project by using html, servlets. in html form tag what is the url that i have to give in post attribute. and i am using access as my database. it is giving that httpserver error that given table is not found. will u please …
The End.
madhusamala