35,618 Topics

Member Avatar for
Member Avatar for sjohnfernandas

hi all i have 2 systems connected in lan.i have to access the system 1 Database from system2 using mysql odbc connector.if i give localhost in the hostname then give username and password of system2 in the corressponding places now i can get the list of databases from system2 mysql …

Member Avatar for StephNicolaou
0
259
Member Avatar for jet101

guys, need help... Im currently working on a project with jasper report. it seems that the pdf file (report) runs on a browser succesfully without a subreport in Glassfish server but when there is a subreport the error occurs. ive been working with this problem since last week and im …

Member Avatar for tamseo
0
1K
Member Avatar for Joey_Brown

Hello; What would be the most efficient way to get all of the 2^24 network identifiers for the given A class IP address. I am aware it is a very stupid question, and a inpractical one for that matter but thank you for any input. Im trying to speed up …

Member Avatar for Joey_Brown
0
139
Member Avatar for softDeveloper

Hi All! I'm trying to call a method defined in a jsp that is in my webcontent web application. I placed [CODE] <%@include file="method.jsp"%>[/CODE] in the jsp from where I want to call the method. I get an exception saying: [CODE]org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred …

Member Avatar for stultuske
0
295
Member Avatar for pink_sapphire

hello, I am in the process of working on a design project for my fourth year of uni and am running into some trouble. At the moment, we have a serial communication coming from an Arduino and displays in the console box of Eclipse. Each lines displays. However while this …

Member Avatar for JamesCherrill
0
1K
Member Avatar for rezaieit

Hi I wanted to create a erdos-renyi random graphs with ErdosRenyiGenerator class in Jung. Please help me in fulfill the parameters of this class . Thanks.

0
33
Member Avatar for wonderlandslost

Hello! So I've been working on a 1D array that represents a school bus that can hold up to 10 children. The array needs to have names put into it in the first available 'seat'. I've constructed code to do so, but something seems to be wrong. The findFirstEmpty method …

Member Avatar for wonderlandslost
0
336
Member Avatar for Vampiricx3

I have an idea in mind. I want to create a Terminal (Windows Command Prompt) based completely in Java, capable of creating, compiling, editing, etc for Java files. I would like this to also resemble the look of Terminal/Command Prompt. Being the black background, and the text start like below. …

Member Avatar for DJSAN10
0
236
Member Avatar for Zaad

Hi; This is a code that I got from the examples in Oracle in using the javax.print When i try to compile and run a get an error saying javax.print.PrintException: java.lang.IllegalArgumentException: URI is not hierarchical [CODE]package printtry; /* * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. * * This …

Member Avatar for Zaad
0
4K
Member Avatar for VIEBlitz

[CODE]package test; import java.util.Scanner; public class Test { public static void main(String[] args){ Scanner kbReader = new Scanner(System.in); System.out.print("Choose mode (\"words\" or \"symbols\"): "); String mode = kbReader.nextLine(); if ("words".equals(mode)) { String oa = " plus "; String os = " minus "; String om = " times "; String …

Member Avatar for VIEBlitz
0
168
Member Avatar for computerdude87

Can anyone help me put this code into seperate methods? [CODE] public static void Main(String[] args) { String num1String = JOptionPane.showInputDialog(null, "Please enter your first number"); String num2String = JOptionPane.showInputDialog(null,"Please enter your second number"); String num3String = JOptionPane.showInputDialog(null, "Please enter your third number"); Double num1 = Double.parseDouble(num1String); Double num2 = …

Member Avatar for NormR1
0
83
Member Avatar for computerdude87

Can anyone tell me why I keep getting a value of 0 returned? [CODE] public static void main(String[] args) { double getSum = 0; double getAverage = 0; String num1 = JOptionPane.showInputDialog(null, "Please enter your first number"); String num2 = JOptionPane.showInputDialog(null,"Please enter your second number"); String num3 = JOptionPane.showInputDialog(null, "Please …

Member Avatar for computerdude87
0
126
Member Avatar for kalcio

hello, I prepare an application uses the result of the command prompt (Runtime.getRuntime (). exec (cmd)) for a command already entered, and displays it in a Textarea, but I notice that if I use a modal box the problem persists, my problem is that this application is in frensh,if any …

Member Avatar for kalcio
0
341
Member Avatar for axymak

I want to make a simple game in java please help me to decide topic and selecting.

Member Avatar for uurcnyldrm
0
70
Member Avatar for rnlds.walfrets

Is it possible to optimalized Voice recognition using pronounciation and Voice Colour??

Member Avatar for Majestics
0
49
Member Avatar for mallikaalokam

[CODE]import java.io.*; import java.util.*; import java.lang.*; class Files { public static void main(String args[]) { char ch; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); FileOutputStream f=new FileOutputStream("yo.txt",true); while(ch=br.read()!='%') { f.write((int)ch); } f.close(); } }[/CODE] it shows an error at while(ch=br.read()!='%') saying incompatible type,though i tried typecasting.. please help

Member Avatar for stultuske
0
134
Member Avatar for aanshik

which one of best in java struts1.3 struts2 Regards [URL="http://www.supportcorporate.com/staff-augmentation.php"]Staff Augmentation Services[/URL]

Member Avatar for DavidKroukamp
0
83
Member Avatar for bloodbender

Hello Daniweb, I can't wrap my head around this minor issue. Maybe it's a known bug and I just can't find the right keywords to google it or maybe it's supposed to be like this. Let me know what you guys think. [CODE] public class TestPostfix { public static void …

Member Avatar for bloodbender
0
130
Member Avatar for tomtaila

Ok so my university has assigned me the task of creating a brick breaker game for android phones (full spec below). What I would simply like to know is[B] which design pattern I should be using to structure my program?[/B] If I should be using more than one which should …

Member Avatar for NormR1
0
519
Member Avatar for vijiraghs

Hello, The following is my requirement. The user writes a blog. It contains a heading, few keywords and the content. The user then submits the blog. Before getting stored, the content section of the blog must be scanned using [url]http://www.webconfs.com/keyword-density-checker.php[/url] There will be a **library containing the keywords related to …

Member Avatar for NormR1
0
111
Member Avatar for rushikesh jadha
Member Avatar for stultuske
0
293
Member Avatar for breakid

Hi, I have an XML file looks like this <node> <node2><node3>1</node3></node2> <node2><node3>2</node3></node2> <node2><node3>3</node3></node2> </node> I am trying to read one child into a string I want my string to look like that : <node2><node3>1</node3></node2> [CODE] File xml = new File("json.txt"); SAXReader reader = new SAXReader(); Document doc = reader.read(xml); Element …

Member Avatar for stultuske
0
135
Member Avatar for cs_1000100

Hello, My question is if I have program programmed by matlab and I want program an interesting interface using another program language such as java ,can I do that? Please give me suggestions about programming wonderful interface using matlap or any other language can integrated with matlap because the original …

Member Avatar for cs_1000100
0
261
Member Avatar for vikkii_gv

Hi to everyone, what's my doubt is when u r closing the window it should as do u want save the changes you made the option are yes,no,cancel it should be done in jsp,java script. can anyone help to solve this problem plz if anyone know the solution mail me …

Member Avatar for stultuske
0
126
Member Avatar for miramiey

Hello, I am creating simple an applet to draw a registration form based on the selected item within the awt choice object. I have include a radio button, choice list and button. My problem is when running the Applet...the choice list is blinking and when I maximized or minimise frame …

Member Avatar for JamesCherrill
0
224
Member Avatar for Jnk

I have a problem with sockets. I am using this code in java as the client: [CODE] class Javaclient { private static DataInputStream input; private static PrintStream output; public static void main(String argv[]) throws Exception { int PortNumber = 4321; String line; BufferedReader in; Socket MyClient = null; try { …

Member Avatar for Jnk
0
250
Member Avatar for TIM_M_91

Hi guys well what I'm trying to do is produce a query that only produces the results which will match my director input. I have looked for the correct syntax and cannot seem to find it. Any help would be appreciated Code of my syntax below: [CODE] ResultSet results = …

Member Avatar for javaAddict
0
116
Member Avatar for Connavar3

Hi everyone! I have written a server client that receives information, does a database transaction and then sends the result back to the client. My client has requested that they be able to view what was received and what was sent in real time. I have used a JTextArea. The …

Member Avatar for Connavar3
0
415
Member Avatar for mrbaconbitts

I am building a program to make a pyramid as such. 1 1 2 1 1 2 4 2 1 Etc. For 8 rows. [CODE]public class PrintingNumbers { public static void main (String [] args) { int k = 1; for (int i = 1; i <= 8; i++) { …

Member Avatar for mrbaconbitts
0
129
Member Avatar for gatorgirl

My classes compile but for some reason, I always get false when I try to add a student to a course. could someone please help me? [CODE]public abstract class Student extends Person { protected Course[] courses; protected final int maxCourses = 4; protected int numCoursesEnrolled; protected double gpa; public Student(String …

Member Avatar for DJSAN10
0
143

The End.