32,199 Topics

Member Avatar for
Member Avatar for Siddharth_6

<select id="keyEquipmentShiftAutomatedModelData" parameterType="java.util.Map" resultType="java.util.Map"> SELECT ID, SUM(VALUE1 + VALUE2) Total FROM tableName GROUP BY ID </select> Returns below result in sql ID, Total 1 (null) But when returned in Map result in myBatis returns {ID=1} where as Total is missing. How to get the column with null into the result …

Member Avatar for Siddharth_6
0
191
Member Avatar for Mar. Na.

Hi, I need a simple code to find CBO coupling between classes ,by using bcel API.this code isnt work and i dont no how calculate cbo by using parser and (methods,classname and how pass it to program; in my code i calculate simple cyclomatic complexity but now,i need to find …

Member Avatar for rproffitt
0
325
Member Avatar for pihuu

Hi there, I am trying to get a data from a database using a query and populate it into a list view. Instead of getting a string value, I am getting "[Ljava.lang.Object;@64bba873". I have tried to cast it, but it did not work query1 = em.createQuery("Select e.name, y.surname from REQUEST …

Member Avatar for JamesCherrill
0
162
Member Avatar for abim usman

function EnableDisableTextBox(chkPassport) { var txtPassportNumber = document.getElementById("txtPassportNumber"); txtPassportNumber.disabled = chkPassport.checked ? false : true; if (!txtPassportNumber.disabled) { txtPassportNumber.focus(); } } <html> <body> <label for="chkPassport"> <input type="checkbox" id="chkPassport" onclick="EnableDisableTextBox(this)" /> Tab? </label>Tab Quantity: <input type="text" id="txtPassportNumber" disabled="disabled" /> <br> <script type="text/javascript"></script> <label for="shoes"> <input type="checkbox" id="shoes" onclick="EnableDisableTextBox(this)" /> Shoes? Shoes Quantity: …

Member Avatar for kgweb
0
1K
Member Avatar for andreas.petrou.967

hey,i jave this code. how to check the textbox (mname) to accept only letters? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <link rel="stylesheet" type="text/css" href="mystyle.css" /> <!--- call my style --> <head> <title>Home page - MidermFaill2015 - Andreas Petrou</title> <!--- title of page --> <!--Andreas Petrou 8600--> </head> …

Member Avatar for andreas.petrou.967
0
296
Member Avatar for mlhazan

Hi, before posting this thread I tried to find solution inside daniweb but was not successful. I found one but it was so specific for one's own homework problem. I always get lost when I do recursion. I read books but most of them start with Fibonacci or Hannoi problem …

Member Avatar for mlhazan
0
249
Member Avatar for prashant_savadi

I am trying read UTF-16 encoded file in JDK 7, can anyone help me out. I can able to read in Python by: fread = open(r'sample.dat', 'rb').read() mytext = fread.decode('utf-16') print mytext I tried so many ways in java 7 but not succeeded. Thanks in advance.

Member Avatar for prashant_savadi
0
261
Member Avatar for divinity02

hi everyone I just want to say merry christmas to each and everyone here. it has been a while, yes ah kno but anyway have been doing this programming school assignment game for over two months iam having real difficulties getting it to work the way it is supposed to …

Member Avatar for stultuske
0
251
Member Avatar for Maybelline

I have a jsp page in which I add users and display users from the database . so there are two servlets for this functions, how do I invoke both this sevlets(controller) at the same time ?

0
132
Member Avatar for divinity02

hi everyone I have a question: how do you divide in java. by it being that the first number must be divisible by the second number.

Member Avatar for divinity02
0
226
Member Avatar for divinity02

hi everyone i am trying to do some subtraction in a java program . the rules stated that generated numbers from 1 to 9 and the first number must be greater than the second number. I try using the largest and smallest codes but the result i get is that …

Member Avatar for divinity02
0
312
Member Avatar for Violet_82

Hi, is any of you guys aware of any online java project I could join in and help? The thing is, even if I still have a very long way to go before I can code pretty decently, I'm a bit tired of learning with exercises, and I thought perhaps …

Member Avatar for ~s.o.s~
0
235
Member Avatar for priya143

How to replace a string with table using java? I tried a lot , but i didnt find anything , can anybody help me..? Thanks in advance

Member Avatar for JamesCherrill
0
75
Member Avatar for SasseMan

Hi! I'm sitting with a gui bug that I have been stuck with for a while. When a "view" is changed from one "view" to another, the new "view" doesn't get painted properly. The previous view is visibile randomly in the background. I can't reproduce this in the dev environment …

Member Avatar for Ali_55
0
1K
Member Avatar for Fatma_3

how can calculate complixty for this code package ca.pfv.spmf.algorithms.frequentpatterns.fpgrowth_with_strings; /* This file is copyright (c) 2008-2013 Philippe Fournier-Viger * * This file is part of the SPMF DATA MINING SOFTWARE * (http://www.philippe-fournier-viger.com/spmf). * * SPMF is free software: you can redistribute it and/or modify it under the * terms of …

Member Avatar for stultuske
-2
268
Member Avatar for Violet_82

Hi guys, Today I had a look at files and therefore I’d like to create a GUI application that allows me to type a sentence or a word and store it to a text file. The reason for this is that, when I come across an interesting word or sentence …

Member Avatar for Violet_82
0
694
Member Avatar for newcoder310

Hi, I have a scenario where I have 2 labels that need to be configured. The names of the labels are 'Out Data' and 'In Data'. I only have one field in the database called 'Data'. Whether it is 'Out' or 'In' is decided at the runtime by the value …

Member Avatar for newcoder310
0
181
Member Avatar for mydreamgirl

I have a standard java web application package under public_html. My java source code is under WEB-INF/classes/. My jsp files are under public_html and public_html/version/v1. Now all of my jsp file under public_html is running fine, however, the jsp files under public_html/version/v1 do not work with following error: *HTTP Status …

Member Avatar for esprittn
0
298
Member Avatar for John_97

Hello guys. I have a school assignment and Im having a trouble doing it. I will ask for help. I have a class Product and I need to make 2 subclasses Chocolate and Whine. Each product has a name, barcode, price and tax. Each product has a method for calculating …

Member Avatar for JamesCherrill
0
206
Member Avatar for AgentOxegen

I basically am working on a final project for JAVA and I cant figure out how to move the strings into the paint class. Here are my 2 codes. import java.util.Scanner; public class FinalProjectQuestions { public static void main(String []args) { Scanner in = new Scanner(System.in); System.out.println("We will design the …

Member Avatar for JamesCherrill
0
247
Member Avatar for Belfina

I need to make a class that records some information for a book. I need to make 2 constractors, the 1st one receives 6 "elements" and 2nd one only the first 5, as you can see in the code below. I also need to make a simple main program to …

Member Avatar for Belfina
0
271
Member Avatar for miraasir

I want to add data entered from Java GUI into mysql database and inside actionlestener I am using the following code: String s1; JTextField enterdata = new JTextField(10); s1=enterdata.getText(); PreparedStatement ps = con.prepareStatement("INSERT INTO d (name) VALUES (?)"); ps.setString(1, s1); ps.executeUpdate(); 'name' is the column in database; i am having …

Member Avatar for JamesCherrill
0
351
Member Avatar for Aeonix

If I wrote a program which would `Console.WriteLine()` a base64 code, like an easter egg ("a hidden secret" in gaming jargon) or something, for example string EasterEgg = "dGhlYmlnc2VjcmV0"; Console.WriteLine(b64d(EasterEgg)); And I would let a good obfuscator run through it. Now I know that crackers with enough time and knowledge …

Member Avatar for Aeonix
0
447
Member Avatar for coder91

Hi I have a method that accepts a List<String> param as a parameter. I'm writing a JUnit test which needs to be able to accept the parameters as a String and then it needs converted to a List<String> The JUnit code is: public void testMethodName(String params, String expectedResult){ final String …

Member Avatar for coder91
0
322
Member Avatar for sheelap

hi, i am trying to use parseByte function on hex string it show exception number out of Range.NotNumberFormat exception thrown out. pls tell me why it is. my expression is like this byte b=Byte.parseByte("ac",16); it shows above error pls help me.pls explain in simple language.

Member Avatar for JamesCherrill
0
191
Member Avatar for zelrick

Hello DaniWeb Community, I have a question about changing the symbol of my tracker. I am using google.maps.SymbolPath.CIRCLE Can I change this to a image of mine? jpeg / png file If yes, How I can do it? Thank you and God Bless -Tap

Member Avatar for JamesCherrill
0
571
Member Avatar for coder91

Hi just wanting to see how you can iterate over a hashmaps entry set checking both the key and values, if either matches the string passed it will return the other (if it matches the key it will return the value, if it matches the value it will return the …

Member Avatar for JamesCherrill
0
130
Member Avatar for rpv_sen
Member Avatar for JamesCherrill
0
246
Member Avatar for mohan@nano

Hi All I have some doubts while coding in java for the xml reading below is my xml format : <?xml version="1.0" encoding="UTF-8"?> -<ab_rsp status="ok"> -<itm title="United States" guid="04570A9A-6066-11E2-BB55-FF519035903F" type="country"> -<itm title="Arizona" guid="A83274AC-901A-11DF-A622-0C319DFF4B22" type="authority"> -<itm title="Academic Standards" guid="9935C580-C0DA-11DA-80AA-DCC515614119" type="document"> -<itm title="Technology" guid="E3E0AD06-FC32-11D9-8407-9AE6FB2C8371" type="subject"> <meta name="year">2000</meta> -<itm title="Readiness (Kindergarten)" guid="001DCFCC-2A74-11D8-A1A9-EB97E8AED672" type="grade"> …

Member Avatar for JamesCherrill
0
188
Member Avatar for coder91

Hi, I wrote a method that accepted a parameter and used a hashmap to return the value for that key. However I have been asked to change the way it is written so that code isn't duplicated. The hashmap used has key value pairs such as 'X', 'Y' in one …

Member Avatar for JamesCherrill
0
320

The End.