- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 3
9 Posted Topics
Re: just give your ideas whatever comes to your mind about your questions and if it is not correct we will resolve it | |
Re: /* Try to execute this program if there is any issue please let me know*/ [code]import java.io.*; class AllEvenNum{ public static void main(String[] args) { try{ BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter number : "); int num1 = Integer.parseInt(br1.readLine()); System.out.println("Enter number : "); int num2 = Integer.parseInt(br1.readLine()); System.out.println("Even Numbers:"); … | |
Hello friends kindly help me, Which is purely object oriented language Java or c++? If it is java why it is? how it is? If it is c++ why it is? how it is? Kindly help me........... | |
Re: check the redirection code weather you have given the correct URL response.sendRedirect("../abs.jsp"); here the .. means the path will be taken from the root directory. | |
Re: [CODE]protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); String name= request.getParameter("txtname"); String pass= request.getParameter("txtpass"); Connection connection=null; ResultSet rs; if(name !=null && pass!=null) try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String connectionurl= "jdbc:sqlserver://localhost:45316; database=Online_Store; user=sa; password=mith1234"; connection = DriverManager.getConnection(connectionurl); Statement stat=connection.createStatement(); } catch(SQLException e) { System.out.println("Message:"+e.getMessage); String sql=("insert into login … | |
Re: I got your problem you are getting only one name and try to display many how it is possible //initializing int i=0; String name[]=new String[50]; For adding case 1: System.out.print("Enter Name: "); name[i] = in.next(); i++; this will store until you press other key values To display or print case2: … | |
Re: /* This way you can count no of spaces available in a string....*/ import java.util.*; public class CountSpaces { public static void main (String[] args) { BufferedReader buff=new BufferedReader(new InputStreamReader(System.in)) System.out.print ("Enter a sentence or phrase: "); String str=buff.readLine(); int count = 0; int limit = str.length(); for(int i = … | |
Re: Actually we use constructor in java to have initialization done by the program it self when the time of objected is created.so when the object is initialized the the respected method will be alled or executed. |
The End.