35,618 Topics

Member Avatar for
Member Avatar for sivasuit
Member Avatar for masijade
0
86
Member Avatar for Garee

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 …

Member Avatar for JamesCherrill
0
85
Member Avatar for john butler

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

0
74
Member Avatar for jhonilson

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 : …

Member Avatar for javaAddict
0
1K
Member Avatar for james chaco

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 …

0
124
Member Avatar for Dupron

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 …

Member Avatar for yasuodancez
0
571
Member Avatar for letheredge

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 …

Member Avatar for martin5211
0
83
Member Avatar for CALGACUS

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 …

Member Avatar for NormR1
0
160
Member Avatar for Harine

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 …

Member Avatar for peter_budo
0
177
Member Avatar for Xufyan

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 …

Member Avatar for Xufyan
0
204
Member Avatar for supra

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

Member Avatar for martin5211
0
174
Member Avatar for erogol

Do you know any different API or extension of JMF that support more media formats and usable for different OSs.

Member Avatar for sneaker
0
73
Member Avatar for pankajagar2002

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]

0
69
Member Avatar for sonamsinha23

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

Member Avatar for NormR1
0
61
Member Avatar for loveu

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

Member Avatar for javaAddict
0
95
Member Avatar for dresposure

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??????:)

Member Avatar for extemer
0
161
Member Avatar for churva_churva

/*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 …

Member Avatar for javaAddict
0
950
Member Avatar for churva_churva

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.*; …

Member Avatar for churva_churva
0
233
Member Avatar for churva_churva

----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 …

Member Avatar for javaAddict
-1
242
Member Avatar for SaranyaKrishnan

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 :(

Member Avatar for javaAddict
0
61
Member Avatar for erogol

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,

Member Avatar for erogol
0
143
Member Avatar for SaranyaKrishnan

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

Member Avatar for SaranyaKrishnan
0
176
Member Avatar for Chaster

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.

0
69
Member Avatar for purijatin

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, …

Member Avatar for masijade
0
117
Member Avatar for churva_churva

/** * @(#)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 …

Member Avatar for NormR1
0
324
Member Avatar for extemer

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 = …

Member Avatar for NormR1
0
135
Member Avatar for Sunshineserene

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? …

Member Avatar for NormR1
0
484
Member Avatar for toomuchfreetime

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 …

Member Avatar for rahul4/69
0
475
Member Avatar for steveh000

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 …

Member Avatar for steveh000
0
104
Member Avatar for fr0styh3rb

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 …

Member Avatar for tong1
0
150

The End.