Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
15
Posts with Downvotes
5
Downvoting Members
8
7 Commented Posts
0 Endorsements
Ranked #4K
~7K People Reached
About Me

Passion for java

Favorite Tags
java x 18
jsp x 9
Member Avatar for Maureen

I am new to programming, so please accept my apologies if this question is simple. I have a class (say called Student). I want to store the name of the student (name) and the course (course) I have declared some variables in my Student class: [code] private String name = …

Member Avatar for manjushreekaran
0
3K
Member Avatar for ziaul1234

hi I am really having a problem on making a project of inventory system in Java. The project says: The inventory control system should have 1. Login in to the system. 2. Adding new items. 3. Modifying data of selective item. 4. Deleting existing items. 5. Check the stock availability. …

Member Avatar for linx311
-2
454
Member Avatar for fardoonmuhafiz

hi, i deployed a webapplication(wapp1) having input.html and a servlet(Servlet1) in tomcat web server. The form input.html just accepts a text and when u click on the button click the request is sent to servlet in wapp1. The request is redirected to a servlet(Servlet2) which is in a webapplication(wapp2) deployed …

Member Avatar for fardoonmuhafiz
-1
83
Member Avatar for fardoonmuhafiz

Which is the most efficient way of creating a string object in java? [icode]String s="helo";[/icode] or [icode]String s=new String("helo");[/icode] in terms of memory usage? Thanks in advance...

Member Avatar for fardoonmuhafiz
0
88
Member Avatar for qutejose
Re: J2EE

Does J2EE support Enterprise applications? Is Java Beans an application dependent components? Does JavaBeans support sharing among the network? 1 Javabean can contain how many classes? Does Servlets execution starts with main methods?

Member Avatar for fardoonmuhafiz
-1
89
Member Avatar for beanboy

hi, i'm trying to run a servlet code, but i get "HTTP Status 404 - Servlet Update2 is not available" error. i checked code, its perfect, web.xml is correct. but i did not find any .class files in my web-inf/classes directory. how could i get servlet .class files in web-inf/classes …

Member Avatar for fardoonmuhafiz
0
90
Member Avatar for fardoonmuhafiz
Member Avatar for verruckt24
-3
143
Member Avatar for mayaaa

Hello All, Can anybody plz guide me how to write a new method in servlet. I am using netbeans 6.8 A code snippet will be highly appreciated. Also I will be calling these method of servlet B from servlet A. In Servlet A there are 2 hyper links, which should …

Member Avatar for mayaaa
0
3K
Member Avatar for jemz

hello please help me i have a program and i want to connect to the database i don't have any idea on how to connect because im still a begginer on this..help me please how to connect to the database,hoping for your positive responds

Member Avatar for jemz
0
120
Member Avatar for fardoonmuhafiz

If a class doesnt override toString() method and tries to print out the object like this: //some class [code] public class SomeClass1{ int x=4; } //another class class DemoOftoString { public static void main(String[] args) { SomeClass1 o=new SomeClass1(); System.out.println(o); } } [/code] output:SomeClass1@hex version of object's hash code ------------------------------------------ …

Member Avatar for fardoonmuhafiz
0
96
Member Avatar for chern4ever

[CODE]import javax.swing.JOptionPane; public class test{ public static void main(String args[]){ String numT = JOptionPane.showInputDialog(null,"Please enter a value."); double num1 = Double.parseDouble(numT); System.out.println("Fahrenheite = "+num1+"\nCelcius = "+convertFtoC( num1 )); } public static double convertFtoC ( double num1 ){ return ((5/9)*(num1-32)); } }[/CODE] why the value return is zero? hrm... can anyone …

Member Avatar for fardoonmuhafiz
0
175
Member Avatar for fardoonmuhafiz
Member Avatar for joehms22
0
75
Member Avatar for fardoonmuhafiz

Hi, I have a doubt here, plz go thru the code snippet here: Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); Statement and ResultSet are interfaces. executeQuery() method of Statement interface returns a ResultSet object here. That means defnitely Statement should implement ResultSet interface methods to return a ResultSet object, but …

Member Avatar for javaAddict
0
82
Member Avatar for Dannyo329

Hi, whilst reading a book on Java, I came across a bit where the author used [CODE] GregorianCalendar now = new GregorainCalendar(); [/CODE] And I was just wondering, is that any different from [CODE] Calendar now = Calendar.getInstance(); [/CODE] And if so, why did he use GregorianCalendar instead of the …

Member Avatar for Dannyo329
0
90
Member Avatar for anjalhere

hello everyone, Output is coming not equal for same input.what is the error in this program? import java.util.*; class newobj_equal { public static void main(String[] args) { int eid; String ename; double salary; Scanner sin=new Scanner(System.in); System.out.println("Enter eid");z eid=sin.nextInt(); System.out.println("Enter ename"); ename=sin.next(); System.out.println("Enter salary"); salary=sin.nextDouble(); emp e1=new emp(); e1.accept(eid,ename,salary); e1.display(); …

Member Avatar for musthafa.aj
0
136
Member Avatar for Dearster

Is there a function with the scanner class to allow for the user's input to just go on one line instead of two. I am using Scanner scan = new Scanner (System.in) with scan.nextInt and it is coming up with 10 4 and I want it to appear on one …

Member Avatar for fardoonmuhafiz
0
80