35,618 Topics

Member Avatar for
Member Avatar for FerrousRex

I've been trying to find a library that will either let me display a .ppt file or an .odp file, but I've not really been able to find either so far. I've already tried the Apache POI library, but it only lets me display an image of the PowerPoint. If …

Member Avatar for vealparry
0
103
Member Avatar for borchu

Hello Everyone; I have been trouble with putting Random numbers in an array for an 2 hours My problem is ,yes I know that how I can put Random numbers in an array but, for example my array length is 6 and I generated 1 to 6 random number and …

Member Avatar for borchu
0
194
Member Avatar for plasticfood

this program just prints out prime number within the range of the for loop. however it doesn't print anything. [CODE] boolean prime; for(int i = 11; i < 100; i++){ prime = isPrime(i); //this method works as i tested it before if(prime){ System.out.println(i); } } [/CODE] everytime i run this …

Member Avatar for plasticfood
0
118
Member Avatar for privatestatic

hey guys im kinda new to java n want ur help in solvin this problem : post: all of the "letter" characters in the entered string will have been switched (lowercase to uppercase, vice versa) i can only use for loops, character class methods, string methods heres my code but …

Member Avatar for pbl
0
105
Member Avatar for RedDevilMalaya

Write a queue-handling program that asks each customer for their names as they place orders at a fast food restaurant. Each record in the queue should consists of a name field with of 20 characters and an integer field, which keeps track of the total number of customer served. The …

Member Avatar for pbl
0
126
Member Avatar for newtechie

hi i have a doubt i did this coding and when i complied it and tried to run the program evenupon giving the correct answer("ritchie") the output i got says answer is wrong. can anyone tell me what is wrong with the coding [code=java]import java.io.*; class Invent { public static …

Member Avatar for Apache1
0
95
Member Avatar for CLina

Hi profissionals! Happy new year : ) .... I have a binary tree project and I need to convert a fully parenthesized arithmetic expression to a binary tree. I was thinking of this algorithm: 1. input a string of expression. 2. breakdown the string and creat new node for each …

Member Avatar for CLina
0
695
Member Avatar for Kioulis

Hello! Could anybody help me to make this java code( or part) to assembly (mips 32)? I would apprecĪ¹ate any help! The java code is: [CODE]import java.io.*; class BinarySearch { final static int MAX=5; public static void main (String args[]) throws IOException { char [] a = new char [MAX]; …

1
39
Member Avatar for adams161

Hi, I have a frame and it contains some different JInternal frames. I have a request that some people want some of these frames to be free floating, and not confined within a desktop. Is there any way to do this with JInternal frames? Or is there any way to …

Member Avatar for adams161
0
228
Member Avatar for nesrine18

hi everyone, i'm a new member of this forum..i'm trying to retrieve the video stream from my Axis camera..i don't know what's exactly the problem:when i run the project there's no errors but i get no video on my jFrame.. this is my code,can you please help me to know …

Member Avatar for kashif_pucitian
0
427
Member Avatar for deb081900

Hi all I have 4 jRadioButton in a buttonGroup1 now I want to know how to determine which radio button is selected within these 4 radio button on Button Click event.. I tried to but failed.. here is my code [CODE] private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { str1=buttonGroup1.getSelection().getActionCommand(); System.out.println(str1); } [/CODE] …

Member Avatar for JamesCherrill
0
639
Member Avatar for Alex_

Hello. I'm trying to serialize a class that implements Serializable and a Runnable. My class has a transient Thread object as a field that is created and started after the restoration of my class(object). This is proven possibile by a tutorial from Oracle, [URL="http://java.sun.com/developer/technicalArticles/Programming/serialization/"]here[/URL]. But i fail to compile my …

Member Avatar for Alex_
0
2K
Member Avatar for draven07

[COLOR="Green"]..im just wondering...If I have entered a sentence in a InputDialog box, using JOptionPane, how can I get the middle character per word and put it at the beginning of each word then add a "java" word at the end of each word..?..[/COLOR] [B]for example:[/B] [I]The girl jumped[/I] [B]The result …

Member Avatar for draven07
0
94
Member Avatar for ayan2587

Hi all, I am trying to understand as to how this InputStream.read(byte[] b) function actually works. I have a doubt regarding the InputStream.read(byte[] b) function. The code is as follows:- [CODE] import java.io.*; public class SpeedReading { public static int count(String filename) throws IOException { InputStream is = new BufferedInputStream(new …

Member Avatar for ayan2587
0
104
Member Avatar for cb0058385

Hi...Could someone please tell me the best book for studying JMS? I am presently going through the " Java Message Service " by Mark Richards (O'REILLY). I can't say I am satisfied with this book.

0
130
Member Avatar for rpjanaka

hi im janaka priyadarshana, I want to write a program to access a given URL. dont need to show it on a browser. only want to get the html tags and write it on a text file. serch on internet for this purpos, but unable to find any idea. please …

Member Avatar for Jacob Majana
0
367
Member Avatar for siva ganesh

how to store an image from one directory to another directory using jsp?

Member Avatar for Shanti C
0
78
Member Avatar for SaranyaKrishnan
Member Avatar for pbl
0
69
Member Avatar for SarasotaTim

Hi guys...I can't seem to find this specific information online anywhere, which tells me initially that it might require a workaround...I'm a Cold Fusion developer, and have no JSP knowledge whatsoever. I've figured out how to do a redirect based on an if/then statement...the problem is, I need a page …

Member Avatar for Shanti C
0
71
Member Avatar for sirlink99

I am having some trouble on inheritance in java. I am just testing how it works. I have a file that produces a random number in a folder called number. I have a file that calls the RandomNumber code that is in the main folder. I am wondering how I …

Member Avatar for pbl
0
87
Member Avatar for rayden150

could anyone give me guide on how to solve this simple java problem, i would deeply appreciate it, the problems goes like this> [B]Develop ab application in java that determines if any clients have exceeded thier credit limit in an account each client have the following data> a)Account number b) …

Member Avatar for pbl
0
105
Member Avatar for javap

I want help in writing a digit display(3 digit number) in java (using sub strings). Example 524 if user inputs then computer has to display 5 2 4.

Member Avatar for JKP()
0
147
Member Avatar for misszeze

hello Java programmers I need a method to check links to validate them if they were valid or broken, so far i found two methods at the internet: 1- the first one code: [CODE]HttpURLConnection urlConnection = null; try{ URL url = new URL(link); urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod("GET"); urlConnection.connect(); String …

0
45
Member Avatar for adams161

I have found out a program similar to mine, a chess interface, named jin, jinchess.com, deploys on mac as an SDI program. This means all the windows are free floating and i think the menu is detached. Any idea how this is done? the same program deploys under windows as …

0
99
Member Avatar for mangopearapples
Member Avatar for mangopearapples
0
140
Member Avatar for john sigma

hi guys, i am using eclispe 3.5 to develop a hangman game but im in no man's land now. I have created 26 alphabets buttons A-Z and i want to display the alphabets in the JTextField when the button is clicked. When the user guesses the word incorrectly the word …

Member Avatar for jon.kiparsky
0
203
Member Avatar for gedas

hey, i have drawn few 2d lines and i would like to apply a button for each of them so once the button is clicked that line is removed once clicked again it would reappear. the rest of the lines stay where they are unless their buttons are clicked. how …

Member Avatar for JamesCherrill
0
75
Member Avatar for cool_jatish

Hello guys... I am working to module need to convert any UNICODE words/ chars that never change with font To their equivalent HTML numeric & JAVA unicode [\u****]. In the JSP the charCodeAt(i) function works but in JAVA no such utility exit ... Plz write with such an suitable example …

Member Avatar for quuba
0
194
Member Avatar for sharathg.satya

haii friends please help me in how to play a music file in java please i tried many ways by using google and other ways but was unable to get a clear idea please help me

Member Avatar for sharathg.satya
0
172
Member Avatar for RaySan

I am a newbie on Java. I think im lucky to find this site. I am doing a technical presentation and my title is to present about IDE on Java. I have researched on some of the IDEs for Java such as Eclipse, NetBeans, JBuilder,Jcreator. My presentations would be on …

Member Avatar for masijade
0
474

The End.