32,204 Topics

Member Avatar for
Member Avatar for emilybose

Hi, I want to read an xml file thru java..all examples in google r of same type.... my xml file shows <?xml version="1.0" encoding="UTF-8" ?> - <checkstyle version="5.3"> - <file name="C:\Checkstyle\Junit\LLU.java"> <error line="2" column="8" severity="error" message="Unused import - java.io.FileWriter." source="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck" /> <error line="3" column="8" severity="error" message="Unused import - java.io.IOException." source="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck" …

0
33
Member Avatar for virendra_sharma

Hi frnds, i want to display profile from linkedin like , name , address , company and pic in my application. as "xobni" use to display . can anyone plz help me out for to do this.

Member Avatar for jmaat7
0
79
Member Avatar for softswing

Hai , How can i make beep sound in java,with out sound card, is it possible? how can i implement this, please help me.

Member Avatar for JSPMA1988
0
91
Member Avatar for WolfShield

Hello everyone, I have just recently started learning Java (previous Python programmer) and I am making a text based calculator program. I have had no problems with programming it so far, and I just need help with one part of perfecting it. [code=java] package calculator; import java.util.Scanner; public class Main …

Member Avatar for WolfShield
0
274
Member Avatar for aligajani

I want to inquire what is the major difference between the usage of ArrayList and Array in the Java programming language. I would appreciate good responses and would be enthralled to continue the discussion further upon interest. Regards, Ali

Member Avatar for dheeraj208
0
187
Member Avatar for Tecomapu

hello. im completely new to Java. i have done quite a bit of C# in the past, so that should be an advantage really. my question is, which area or section of Java should i start studying (i dont need to go through console applications..) to have a quick start …

Member Avatar for aligajani
0
166
Member Avatar for mag12203

I am just plain stuck. I can not figue out why when I type a word to test a palindrome sometimes it comes back as true and other times as false. Thank you for any help. import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static …

Member Avatar for mag12203
0
170
Member Avatar for krip_101

[CODE]import java.util.*; import java.util.Random; import java.lang.*; import java.util.Scanner; public class testing1 { public static void main(String[] args) { String pass = new String("ENTER THE HAMLET HAM TO BE OR NOT TO BE THAT IS THE QUESTION WHETHER TIS NOBLER IN THE MIND TO SUFFER THE SLINGS AND ARROWS OF OUTRAGEOUS …

Member Avatar for krip_101
0
249
Member Avatar for JAVA4ME

Hi, I'd like to know how to open for example a .doc file with java. I want word to open the file when I start my program. Any help?

Member Avatar for JAVA4ME
0
103
Member Avatar for vjcagay

What is the significance of using packages in java? How does this help in programming? Pls reply asap...

Member Avatar for ~s.o.s~
0
99
Member Avatar for mini programmer

Hi to all; I have chat's code with JAVA language, and it contains 14 files. I try to do compile to them in (command line prompt). by : 1. javac (NameOfFile).java 2. rmic (NameOfFile) 3. javac (NameOfFile2) And only 4 file can I compile .ChatClient.java , RMIChatServer.java , RMIChatClient.java and …

Member Avatar for mini programmer
0
158
Member Avatar for sijothomas

Hi dear friends , My name is Sijo , I am doing a Biometric project . So that for an instance i need to install CMAKE , Could anybody please help me . And PLease give me the steps to run a simple java program using this "[B]openCV & cmake[/B]" …

Member Avatar for pbl
0
82
Member Avatar for JAVA4ME

Hi, I want to open programs such as word or excel which are pretty much default for windows users, but don't want to be restricted to the specific file location. For e.g. instead of rt.exec("C:\\Program Files\\Microsoft Office\\Office10\\POWERPNT.exe") is there a way of linking to powerpoint such that on a computer …

Member Avatar for pbl
0
98
Member Avatar for blur0224

[COLOR="Red"]Exception in thread "main" java.lang.Error: Unresolved compilation problem: The function method() is undefined for the type Madness[/COLOR] [B]There is no method to my madness...[/B] :) Merry Christmas all!

Member Avatar for JamesCherrill
0
95
Member Avatar for Tango2010

Hi All, I wonder if anyone could help? I have a large Java program which needs at various points to run UNIX commands. The only wayI have found to do this is below (although I would have liked the program to output all terminal commands into the same window (shell) …

Member Avatar for ~s.o.s~
0
498
Member Avatar for Kreative

I am new to java and have this course work to complete can you assist me with the codes pleas I need to write a program that helps me perform basic math tasks, working out factorials, powers and primes. Start by printing the menu Welcome to the Math Calculator Pick …

Member Avatar for Akill10
-1
216
Member Avatar for swagatikat856

hii daniwebians, i need the source code for my project "online banking",could u provide it using J2EE.

Member Avatar for zinahun
-5
183
Member Avatar for ronnieaka

my teacher gave us this basic example of rmi the interface, server and client programs are given in order though i know that in server side there is no bind() statement and in client a proper lookup(),and no import of registry package in server program,cause i googled up and saw …

0
77
Member Avatar for blur0224

So I'm building a web crawler for a pet project I've been working on. I'm using tutorial code for the crawler then building on it. I've done extensive troubleshooting and haven't had any luck. The problem: [LIST] [*]Roughly half the websites return content, but all of them return headers. [*]Some …

Member Avatar for blur0224
1
298
Member Avatar for Kuroshi

Lets say I need to compare the x position of a ball with the x position of a rectangle to see if they have collided. Wouldn't it be easier to just declare x in ball as public so I can use ball.x instead of ball.getX()?

Member Avatar for mrnutty
0
91
Member Avatar for churva_churva

[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JHelloFrame extends JFrame implements ActionListener{ JLabel question= new JLabel("What is your name"); Font bigFont= new Font("Arial",Font.BOLD,16); JTextField answer= new JTextField(12); JButton pressMe=new JButton("RressMe"); JLabel greeting= new JLabel(""); final int Width=175; final int Height=225; public JHelloFrame() { super("Hello Frame"); setSize(Width,Height); setLayout(new FlowLayout()); question.setFont(bigFont); …

Member Avatar for Akill10
0
279
Member Avatar for wonder_laptop

Dear All, My boss has asked me to implement a project that includes writing a "mobile code" using java programing language. This code will be transferred on the network of nodes ,going from the source code node to other nodes, and at a point returning to it with certain information. …

0
123
Member Avatar for libathos

I want to create a class which will be responsible for reading an input file and then filling up my other classes...But i do not know how to begin...any ideas?

Member Avatar for libathos
0
106
Member Avatar for Ritesht93

My teacher gave me a program which will maintain the attendance of some class daily , i have made it fully , i use eclispe IDE -JAVA SE , there are a lot of swing components in it like textfields,checkboxes,JList etc so there are Listener classes for the components. constructor …

Member Avatar for Ritesht93
0
201
Member Avatar for onsir

I made application web using hibernate + spring + velocity and IDE Netbeans 6.8 + Glassfish this my files [CODE] applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd" > <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" p:location="/WEB-INF/jdbc.properties" /> <context:annotation-config/> <context:component-scan …

0
69
Member Avatar for ITjulz

Write a java program that computes of the long distance call. The following cost of the call is determined according to the following rate schedule. a. Any call started between 8:00 am and 6:00pm Monday through Friday is billed of a rate of $ 0.40 per minute. b. Any call …

Member Avatar for pbl
0
280
Member Avatar for seanbp

I read about a coding style where not one variable is changed. Everything must stay constant. I don't remember what it's called, but it's the bomb. I never realized this little project would be [I]so easy[/I]. Here is a 98 line calculator that supports [B]()^*/+-[/B]. If you find a bug, …

Member Avatar for seanbp
1
1K
Member Avatar for AaronLLF

I'm making a video game, but there's 1 (more like 10 others that are offtopic :P) thing I want changed. The sky/space color. See this video (Outdated code, but it's the most recent video): [url]http://www.youtube.com/watch?v=ZlCZUtoB0MA[/url] See the black space? I want to change that to something like sky color. I'm …

Member Avatar for pbl
0
143
Member Avatar for raghavp

trying to work on netbeans on a project.... getting the following error [CODE]Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41) at java.awt.image.Raster.createPackedRaster(Raster.java:458) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015) at sun.awt.image.SunVolatileImage.getBackupImage(SunVolatileImage.java:225) at sun.awt.image.VolatileSurfaceManager.getBackupSurface(VolatileSurfaceManager.java:252) at sun.awt.image.VolatileSurfaceManager.initialize(VolatileSurfaceManager.java:108) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:72) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:82) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:93) at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:87) at sun.awt.windows.WComponentPeer.createVolatileImage(WComponentPeer.java:604) at java.awt.Component.createVolatileImage(Component.java:3316) at java.awt.Component$BltBufferStrategy.createBackBuffers(Component.java:4038) at java.awt.Component$BltBufferStrategy.<init>(Component.java:3983) at java.awt.Component$BltSubRegionBufferStrategy.<init>(Component.java:4236) …

Member Avatar for pbl
0
253
Member Avatar for coding101

I have progm that with a class that has the main method, and that method takes arguments which must be typed in the command line...how do i compile and run the class from the terminal using mac cmds what is the syntax? thnx

Member Avatar for jon.kiparsky
0
54

The End.