- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 6
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Java Programmer
- Interests
- Music
96 Posted Topics
Re: In a few sentence, in Java, you don't need to declare a Function first and then define it and then invoke it. You can simply define it and use it. However, if you still want to declare function, then you can use Interface, where you declare your function and then … | |
I am trying to develop an application where user will upload a file from screen, the file will be processed in server side. I am using Adobe Flex for UI, Spring 3.2 as middleware and Java 5. I can successfully upload the file and in server side can get the … | |
I have a question - how mwmory is allocated when any data structure is declared? Suppose I have declared a list as follows - List<Integer> lst = new ArrayList<Integer>(); How many bytes will be allocated for that variable or initially no memory will be allocated? Memory will be allocated when … | |
I have found a strange problem in my Ubuntu 12.04 laptop. When the machine is started, everything is working fine. But if I press the Right Shift key, the keyboard starts to work abnormally as follows - 1. All the letter keys is displayed in uppercase even if the caps … | |
* I use Remmina as remote desktop client to use my Windows 7 machine from Ubuntu 12.04 machine. It was working fine, but suddenly stopped working. Whenever I try, get the following message - **Failed to startup SSH session: Connection refused**. Then I tried with another Remote Desktop client such … | |
I have a requirement where value of one field in an object will be determined dynamically using a configurable table. For example, suppose I have the following table - Pk | Reference_column ---------------------- 1 | TAB_REF.AMOUNT where TAB_REF is a reference table and AMOUNT is one of the column of … | |
Re: Instance method - method defined in a class which is only accessable through the Object of the class are called Instance method. Method Overriding - If you extends a class and have a method in the subclass with same name and signature as of the superclass, then it is called … | |
I was trying to run a shell script and run it through Cygwin terminal in XP environment. The script I have written is as follows - [CODE]#!/bin/bash read -p "Enter Your name - " fname if test "$fname" == "abcd" then echo "Thank you abcd" fi[/CODE] When I am trying … | |
I was trying to run a shell script and run it through Cygwin terminal in XP environment. The script I have written is as follows - [CODE]#!/bin/bash read -p "Enter Your name - " fname if test "$fname" == "abcd" then echo "Thank you abcd" fi [/CODE] When I am … | |
I am trying to write a shell script which will read a file and counts the number of vowels in the file. The code which read the file is as follows - [CODE]while read -n 1 c do l=$(echo $c | tr [:upper:] [:lower:]) [[ "$l" == "a" || "$l" … | |
I have two OS in my Dell vostro laptop - Windows XP and Ubuntu 10.04. In XP, the wireless is working fine, but in Ubuntu, it is not working. I have checked the wirless driver from System -> Hardware Drivers, it is installed and is in active state. The wired … | |
I am a newbie in linux. After installing ubuntu 10.04, I tried to install google talk in linux. For this, I installed Wine and then downloaded the gtalk exe. But when I am trying to open the gtalk exe using Wine, it blocks the application with message it is not … | |
Hi, I am a new users to Linux and I am using Ubuntu 11.04. In my laptop, I have two logical drive C:\ and D:\. I have installed Windows XP in C drive and Ubuntu in D drive. From Ubuntu, I can mount the C drive and can access the … | |
I have Ubuntu 10.04 installed in my machine. I have set up audio drivers properly so that it was working fine. But when I was listening music in Youtube, it suddenly stoped working. Though the headphone is working, but the speaker is not. I have checked, all the drivers are … | |
Hi, I got a problem connecting my wirelss network from my Dell Vostro laptop. The OS is Windows XP-SP3. The network card is Dell 1394 Adapter card. When I checking the device manager, it says the device is working properly and the driver also installed. The m/c can detect all … | |
I am using Ubuntu 11.04 and using Empathy as chat client. I have added my gmail and yahoo account in the Empathy and they are working fine. I can now chat with friedns without any problem. But when I am trying to voice chat, I can't hear from friends but … | |
I am trying to write a simple servlet program. But getting the error The requested resource (/servletexam/LoginServlet) is not available. I have created two servlet classes as follows - [B]LoginServlet[/B] [CODE] public class LoginServlet extends HttpServlet { Hashtable<String,String> users = new Hashtable<String,String>(); public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, … | |
I am trying to write a simple servlet program. But getting the error [B]The requested resource (/servletexam/LoginServlet) is not available[/B]. I have created two servlet classes as follows - [B]LoginServlet[/B] [CODE] public class LoginServlet extends HttpServlet { Hashtable<String,String> users = new Hashtable<String,String>(); public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, … | |
Re: Please write down what error you are getting. | |
Re: Check the line numbers 60, 71 and 83. It should be System.out.println instead of system.out.println because in java, there is no package named system, it is System. Correct it and then check if you are still getting problem. ![]() | |
Re: Go through the IO section of java, can try the following link - [url]http://download.oracle.com/javase/tutorial/essential/io/cl.html[/url] | |
Re: 1. Constructor is use to create instance of a class. In case, you want to initialize your object at the time of creation, you have to define constructor. If you don't define any constructor, the default constructor defined by Object class is used to create the instance. Hence, without constructor, … | |
Re: The problem is not clear. Could you please post sample output? Is this what your expected output is? User enter - This is a sentence. and output will be - 4. | |
Re: How do u run the program? using java command from comamnd line or using some IDE? check the classpath. It seems a classpath related problem. | |
I am writing a tiny program to learn Spring framework. My application will just print a message which is binded with the view in the server side. My jsp is as follows : [CODE] <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <body> <p>This is my message : ${message}</p> </body> </html> [/CODE] … | |
in my laptop, some of the key which has some functional value associated with it is not working properly. For example, if i press the 'i' key, the value displayed is 5. But if i type Fn+i, it prints i. Similarly m - 0, k - 2, l-3,u-4, p - … | |
Re: In case 1, define methods which return value. In case 2, declare some global variables and define methods that don't return values and assigns the values to those global variables. [QUOTE=Xufyan;1345081]I had an assignment to create a calculator in two ways, 1) Method returning values. 2) Method without returning values. … | |
I was trying to develop an application with Derby. I have java 6 installed in my machine. But I couldn't find any derby.jar or derbytools.jar under my java installation directory. Should I have to install it seperately? As per as I know, it installed automatically with JDK 1.6. | |
Currently, reliance icall does not support any versions of linux. Is there any way to install it in any linux versions using some bridge software or third party software? |
The End.