32,204 Topics

Member Avatar for
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
201
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
172
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
72
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
68
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
58
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
94
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
159
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
942
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
230
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
240
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
60
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
141
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
173
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
67
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
114
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
299
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
134
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
482
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
472
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
102
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
148
Member Avatar for the b

I'm making a rock paper scissors game, and in this game there is a nested for loop so that the players challenge each other, the outer loop is supposed to loop through all the players starting with player 1, while the inner loop starts at the last player and moves …

Member Avatar for masijade
0
230
Member Avatar for skyzer

Hi, i would be grateful for a solution or some explaining. My example is that i have a controlled spaceship. here is userinterface: 3 - planet from which is starts, 0.5 and 0.5 the speed of the ship [CODE=java]public void handleBtnLaunchFPSpaceShip() { this.controller.launchFPSpaceShip(3, 0.5, 0.5); }[/CODE] my controller class: [CODE=java]public …

Member Avatar for skyzer
0
228
Member Avatar for boiishuvo

Hi, I wrote a simple program that should display the text (with specific fonts), one color background and drawing. I tried to run the program but it didn't work. Any suggestions? What is the method of Graphics that allow you to draw within the program? eg java.awt.Graphics but I don't …

Member Avatar for tong1
0
147
Member Avatar for lanhlung696

Please help me. My project to display like window explore from any client's ip address. If i used command line, i can set ip & post listen for server by code: start java TestWEImplServer -ORBInitialPort 1050 -ORBInitialHost localhost & java TestWEImplClient -ORBInitialPort 1050 -ORBInitialHost localhost but went i use eclipse …

Member Avatar for lanhlung696
0
174
Member Avatar for D boss

hi guys, i am working on a new java program, the program consists of a ball, bouncing around the applet, i have created button to control the ball, one to stop the ball bouncing, another to resume the ball boucing and another to reverse the direction of the ball bouncing, …

Member Avatar for jadhav vijay
0
2K
Member Avatar for the_future21

I HAVE TO WRITE A [B][U][COLOR=Red]STOP AND WAIT [/COLOR] [/U] [/B] ARQ FOR MY NETWORKING CLASS I WAS WONDERING IF SOMEONE COULD GIVE ME SOME HELP I HAVE SOME CODE ALREADY IF ANY ONE WOULD LIKE TO SEE IT. ANY HELP WOULD BE REALLY NICE. I REALLY SUCK AND PROGRAMMING …

Member Avatar for nishanthini
-1
79
Member Avatar for BboyRodimus

I got stuck at this error: [B]cannot find symbol symbol: variable BankAddress location: class Bank bankAddress = BankAddress;[/B] [COLOR="Red"]<------pointing at BankAddress;[/COLOR] I'm trying to instantiate an object of Address, calling the constructor of the Address class to create an object of Address. I'll post both classes, Bank and Address [B]Address …

Member Avatar for coil
0
142
Member Avatar for vishalonne

Dear All I am tring to do 1 simple job but some where I am missing something I designed 1 GUI in Netbeans 3 jTextFields, 2 jButtons (design attached) Step 1-> Input any number in 1st text field 2 Step 2-> Input any number in 2nd text field 2 Step …

Member Avatar for vishalonne
0
90
Member Avatar for cac186

Hi I'm trying modify an application to read in text files and collect pieces of data from them to use as input for an application. The data I need to collect from the individual files include doubles, int, and strings of varying lengths depending upon individual text files. There is …

Member Avatar for NormR1
0
186

The End.