35,618 Topics

Member Avatar for
Member Avatar for P00dle

Hey guys, not sure what thread to put this in, please direct me to the correct one if this one isn't it. I'm struggling with a sub report in iReports. I have a report that selects from a MSSQL database, and uses a sub report to do a select from …

Member Avatar for Ezzaral
0
659
Member Avatar for regogo

Hi, Im new to java im trying to study sorting methods specifically bubble sorting i found this code online but couldn't understand what it means. can someone kindly comment the codes so I can uderstand it well. TIA here's the code [CODE] public static void sort( int a[], int n …

Member Avatar for JamesCherrill
0
120
Member Avatar for javausers

Hi all, [CODE]import java.io.*; import java.util.*; class MapDemo{ public static void main(String args[]){ Map<Integer, Object[]> tMap = new TreeMap<Integer, Object[]>(); Object[] values = new String[] {"Tree", "Map"}; tMap.put(1, values); System.out.println("Keys of tree map: " + tMap.keySet()); System.out.println("Values of tree map: " + Arrays.deepToString(tMap.values().toArray())); } }[/CODE] The above code works good …

Member Avatar for NormR1
0
232
Member Avatar for sandman64

This is a class for a bigger project. I programmed it sepratly so that i know it will work when i include it in the project. This is a Palindrome project. SO i want to know if the a word is a palindrome or not. I get the program to …

Member Avatar for JamesCherrill
0
198
Member Avatar for wannas

Hi there, I wrote this client/server code but i can't make it work. and every time i try to debug the code the program goes in an infinite loop when executing the receive function. This is the client code [CODE]package client; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import …

Member Avatar for NormR1
0
201
Member Avatar for manjushreekaran

hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input …

Member Avatar for peter_budo
0
305
Member Avatar for riahc3

Im switching too much between these "wrapper" frameworks so I think I should just concentrate on one and leave the others alone. Which should I go for in a servlet like enviroment? JNI, JNA or Swig? The only one I have "expirence" with is JNI. The rest Im playing around …

Member Avatar for jwenting
0
148
Member Avatar for gouki2005

[CODE]<%@page import="mantenimiento.MantenimientoClientes"%> <%@page import="persistencia.Empresas"%> <%@page import="java.util.Iterator"%> <%@page import="java.util.List"%> <%@page import="mantenimiento.MantenimientoEmpresas"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <script> function validateForm() { if(document.formulario.clienteid.value=="") { alert("clienteid no puede estar vacio"); document.frm.clienteid.focus(); return false; } if(document.formulario.password.value!=document.formulario.repitapassword.value) { alert("Password es diferente"); document.frm.password.focus(); return false; } if(document.formulario.nombre.value=="") { alert("nombre …

Member Avatar for stultuske
0
273
Member Avatar for JavaBiginner

Hi everyone, i just want to ask you help and solicit you ideas in java because i'm a beginner in Java. I have a project that some what like POS (point of sale). But may problem is i have no idea how to to. The problem is, I made a …

Member Avatar for peter_budo
0
318
Member Avatar for begueradj

Hello people, I have a 2 dimensional array of integers where 0 indicates a road and 1 indicates a wall: can you give me a general idea on how to draw a maze according ot my matrix on JFrame window that has JPanel as its contente pane ? Thank you …

Member Avatar for JamesCherrill
0
429
Member Avatar for ilovejava

This is a frighteningly subtle bug I first learned about in C (Andrew Koenig's ``C Traps and Pitfalls''), but it's still with us in Java, and I assume C++ as well... The following method looks like it should always return the absolute value of n, but every once in a …

Member Avatar for stultuske
0
418
Member Avatar for javanewb

Hello, this is my first post. I have this homework assignment, and it is completed and it works! my question is just if anyone has any suggestions to clean it up or make it more efficient? I have two seperate files GuessTheNumber.java which is: [CODE]// GuessTheNumber.java //Written by Sean Kelley …

Member Avatar for frank33
0
234
Member Avatar for ougesh

I want to write a function to accept a single string that represent a credit card number as parameter and validates it with the format 9999 9999 9999 where 9 is any digit and each quadruplet is separated with a single space.

Member Avatar for stultuske
0
176
Member Avatar for begprogram

hi there, im very new to programming and i have trouble coding a application that prompts the user for s series of first names and then display the number of names entered and then the name with the most characters in uppercase letters. the application output should look similar to …

Member Avatar for stultuske
0
110
Member Avatar for dimitros

I cannot figure out why i have this error.It may just be a missing semicolon but i can't find where. Here is my code:(error occurs in many lines, so i can't show where exactly is the problem) /* * To change this template, choose Tools | Templates * and open …

Member Avatar for stultuske
0
591
Member Avatar for Ashenvale

Hey guys :idea: This is my code [CODE]studNo = JOptionPane.showInputDialog(null, "Enter Student Number: "); studName = JOptionPane.showInputDialog(null, "Enter Student Name : "); prelim = Float.parseFloat(JOptionPane.showInputDialog("Enter Prelim grade : ")); midterm = Float.parseFloat(JOptionPane.showInputDialog("Enter Midterm grade : ")); finals = Float.parseFloat(JOptionPane.showInputDialog("Enter Final grade : ")); overallGrade = (prelim * .2) + (midterm …

Member Avatar for stultuske
0
280
Member Avatar for chiiqui

I am in need of creating a payroll system, I have created setters and getters for classes such as Persons, and COntactInformations, I am wondering how would I put each objects value or the value of it's attributes?

Member Avatar for peter_budo
0
89
Member Avatar for poojavb

Hello All, I am stuck in one issue. When I update a value in one tab of a JTabbedPane, the same value does not get updated in the other tab I tried using the StateChange event but still did not succeed. I need to refresh the second tab as soon …

Member Avatar for poojavb
0
429
Member Avatar for sudarshansirsat

Note: error is comming @ line: 59 This is the source code where i m getting nullpointer exception , I am unable to know where exactly this is not getting value. this code is working at another machine but not on my machine though i compiled it from machine on …

Member Avatar for sudarshansirsat
0
375
Member Avatar for jackmaverick1

My problem is that when I try to gather the parts of an array, the part of my code that decides what to keep seems to be making a mistake, though I can't fathom how it is making that mistake. My code is posted below. You should see the parts …

Member Avatar for NormR1
0
322
Member Avatar for akshayinbox

Hey. I came across a website where there was a textarea with formatting enabled (just like this one). I pasted some text from MS WORD and it could detect the source of the data: MS WORD. How is this possible? Thanks.

Member Avatar for NormR1
0
68
Member Avatar for kmbl84

[I]Hi, I writing a "Math Game program" which does the follow: Generate random two operand problems. Allow to the user to enter the solution Each time the user gets a correct result then display a random encouraging message. Similar for incorrect attempts. This program works good in BlueJ, BUT when …

Member Avatar for NormR1
0
336
Member Avatar for fausto1234

Here is a summary of my project. I have a cash for metals company that has both personal and commercial customers. Customers can alos acumulate interest if they keep their money with the company. Some customers are repeat customers, therefore i need a way to keep track of multiple transactions …

Member Avatar for NormR1
0
139
Member Avatar for cms271828

Hi, I've just completed my chess program in java. Its at [URL]http://www.colin-java.co.uk/JChess/index.htm[/URL] I'm looking for a new project now, something to take my time up. Any good ideas. :?:

Member Avatar for SylvesterAbreu
0
293
Member Avatar for aanders5

So I have this website that has a chatbox. I now have an offsite way to chat to the chatbox and get chats from it, the problem is that it only updates other users chats when I post or manually hit refresh, is there a command in java that will …

Member Avatar for Ezzaral
0
188
Member Avatar for bzmommy

I finished the part one to this but am having a difficult time to make it work . Any feedbacks from people who might have done it? Please select from the menu below: 1. Create Personal Customer 2. Create Commercial Customer 3. Record Transaction 4. Make Withdrawal 5. Display Customer …

Member Avatar for fausto1234
0
185
Member Avatar for nsyncpilu

Hy , I have to encrypt a message and then decrypt it. I have this code , but i need to save the encrypted string in a database and the code generates a random key every time. I could save the string and the key in the database but that …

Member Avatar for nsyncpilu
0
441
Member Avatar for Mehnad

here is my entire code. now, the only problem I have stumbled upon is in the last method, getRow, where i have to extract a row from an array of string. could anyone please help me with this, i've been stuck for hours, not knowing why it calls "missing return …

Member Avatar for Mehnad
0
459
Member Avatar for rahul.ch

Hello, I have just started studying EJB. There is this term narrowing in JNDI chapter which I'm frankly stuck at. Could anyone please explain in simple term what exactly it does. And also explain in parts this snippet: [I][B]javax.rmi.PortableRemoteObject.narrow(obj, SignOnHome.class); [/B][/I] Thanks in advance.

0
65
Member Avatar for matt1117

Ok so i have this work for my java class done so far. And i cannot figure out how to get the different letters from an inputted word to output as a number. The assignment is get a user to input a 7 letter word and output it as a …

Member Avatar for StephNicolaou
0
3K

The End.