35,618 Topics
![]() | |
I recently wrote a short program for an exercise in a textbook. After completion however I re-structured the program to use methods instead of one long main method. My question: Which way of programming should I be using? I am leaning more towards the methods as it is much more … | |
Hello Everybody! Can anyone please tell me about the SharedPreferences in Android Programming. I need to use it in my application but not quite clear about it. An example with coding will be greatly appreciated. Thanks, john butler | |
I am having a small problem with getParameterValues function and my algoritm. Before I will explain how is my data table showed: [COLOR="Red"]| value1 | value2 | TextArea | CheckBox | [/COLOR] Then when I check any checkbox and press submit it call other servlet and read the parameters : … | |
Hi, I am planning to develop a bluetooth application and i would like to know whether it is possible to connect more than 2 bluetooth devices, say 3,4,5,6,and even 10,at the same time without losing any connection between them. Bluetooth devices can be laptops or mobile with java support. Any … | |
Recently I have made a simple chatting application(in Java). It has two classes one for client and one for server.On compiling it is not giving any error but on running, it is not giving desired result. So, It will be grateful if you come ahead and try out helping me … | |
So, I'm using two jsps: test1.jsp and test2.jsp. I'm importing the second in the first using c:import. I'm able to pass in a value to test2 using c:param. How do I a) use this value as a variable in test2 and b) pass back a variable to test1? Some example … | |
Hi Everyone, I'm fairly new to Java, and am having problems in trying to convert an ArrayList containing String arrays to an array of String arrays. I thought it would be relatively simple to do, but I keep running into problems. I've looked at all the examples I've been able … | |
Hi, i'm working on migrating csv data into MySQL using jsp. I would like to know if the sql statement shown below can be used in jsp and where i can get examples on the codes. [CODE]String sql3 = "LOAD DATA LOCAL INFILE 'test.csv' INTO TABLE test FIELDS TERMINATED BY … | |
How to return two values from one method ?? for example i've made the following program. [CODE]import java.io.*; class vowel{ public static void main (String args[])throws IOException{ String sentence; InputStreamReader isr = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (isr); sentence = br.readLine(); System.out.print (vowels(sentence)); } static char vowels … | |
Hello friends, I am working on my final yr project using Java Swing. Now for the database part can anybody tell me which I should use among Servlets, Oracle or JSP or anything others. I mean which is currently used in industry at large. Hope to get advice. Regards Supratim | |
Do you know any different API or extension of JMF that support more media formats and usable for different OSs. | |
Hi, i want to merge the some column in a row of jxtreetable as we merge some column in excel or others. The screenshot is attached. Please help me. [URL="http://i51.tinypic.com/67pf29.png"]http://i51.tinypic.com/67pf29.png[/URL] | |
Hi i am getting this error even after i have done import java.io.*; Exception in thread "main" java.lang.NoClassDefFoundError: java/io/Console at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:127) Does anyone have any solution to this problem | |
A java program that accepts one string as input Example Input: Bleach,22,13,TiteKubo Output: Name of manga: Bleach No. of copies: 22 Book borrowed: 13 Author: TiteKubo | |
Hello everybody, I am Pinak. I want to build an apllication regarding encryption. However, I am confused. [B][COLOR="Green"]Should I use Applet or Swing ????? [/COLOR][/B] Can you tell me what is the difference between the two??????:) | |
/*A personal phone directory contains room for list names and phone number for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list,display the corresponding phone number.If the name is not found in … | |
This program should have a menu:it can use a switch method ... MENU: [1]=ACCEPT; [2]=DISPLAY THE SMALLEST; [3]=DISPLAY THE LARGEST; [4]=DISPLAY THE SUM; [5]=DISPLAY ALL; [6]=EXIT; Could someone help me to this problem,and this program that i do i still encountering some errors..please do try to help me.. import java.util.*; … | |
----jGRASP exec: javac -g C:\Documents and Settings\Home\Desktop\java programs\List3.java ---- at: Sep 11, 2010 9:15:23 PM ----jGRASP wedge: pid for wedge is 3808. ----jGRASP wedge2: pid for wedge2 is 3800. ----jGRASP wedge2: CLASSPATH is ".;;.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\Program Files\jgrasp\extensions\classes". ----jGRASP wedge2: working directory is [C:\Documents and Settings\Home\Desktop\java programs] platform id is 2. ----jGRASP … | |
I m looking for a java program that converts a video into frames for my project. Ppl say its available in the net. I searched but in vain :( | |
Dear developers, I decided to code a little music player to get some experience with JAva, but I do not have any idea how to code it in Java. Is there any API or Library to be used for such project or any other suggestions? Thanks, | |
When i access a user-defined java class in matlab, it says >> t=Areas ??? Undefined function or variable 'Areas'. Areas is my classname in java. I dynamically added the path of the directory containing Areas.class file Thank you in advance | |
Hi all, I have a JTree (JXTreeTable actually, but anyway, it should be similar). I use setShowsRootHandles(true), but the handles are not displayed. Do you know what may cause the problem? My current look and feel settings support these kinds of things. Thanks in advance. | |
Hello For example if i want to implement my own protocol, i can proceed by implementing the extra features on UDP on the application it self and thus achieving my task. But what if i want to implement it on the OS level just like TCP or any other protocol, … | |
/** * @(#)List2.java * * * @author * @version 1.00 2010/8/26 */ import java.util.*; public class List2 { private int [] arr; private final int MAX = 10; public List2() { //allocate memory to arr arr = new int[MAX]; } //accept 10 numbers public void accept(){ Scanner console = new … | |
guys i trying to run simple applet program but getting the same error that "START:APPLET NOT INTALIZIED".i save both of files in the same folder "bin" but yet the same error.can any one help me.here is my code[ [code]import java.applet.*; import java.awt.*; public class move extends Applet{ int x_pos = … | |
Hi, I have this program that part of it is hard coded. Instead of hard coding it, I need to do a file read instead. Meaning, the hard coded part must be changed to reading the info I need from a txt file. May I know how to do that? … | |
Hey I'm trying to get a splash screen going for my application but having a problem in finding the image once the splash screen is called it returns a null. I'm trying to use the java standard 6 way where the splash screen is displayed before the jvm is started … | |
Hi I wonder if someone could point me in the right direction, I have two class`s in my program one is a search thread the other is the swing gui. I want to send updates and info from the thread to my gui but have not got any idea on … | |
Hello all, can someone take a look at my inventory program code for part 3 of the program mod. The program outputs, but I am still experiencing a few errors. If someone could take a look and let me know what to change I would greatly appreciate it. This is … |
The End.