35,618 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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. | |
[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 … | |
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 … | |
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. :?: | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … |
The End.