32,199 Topics

Member Avatar for
Member Avatar for Ken1234

Write a Java program that generates and displays 100 random integers in the range of [10, 25] inclusively. The program then displays the number of occurrences for each number in that range. Next, the program displays the maximum, minimum and average (with exactly 2 digits after the decimal) value of …

Member Avatar for JamesCherrill
0
164
Member Avatar for soehtetnaing.mdy

I was trying to connect MSSQL EXPRESS with Java. I was successfully connect with MSSQL SERVER with user name and password. but I can't connect a database which does not have user name and password. I was inserted "integrated security=true" in my code. But it is still unsuccessful. Help Me …

0
114
Member Avatar for Chinthanie

I have introduced an algebra for a new memory model. Now I need to implement this using Java. Basic step of my program is: Once we need to execute an application program (exe file), My program should accept that and classify it according to its functioning. do you have any …

Member Avatar for Chinthanie
0
233
Member Avatar for kingarthur

Hi there, this is my first post, so pls be polite ;) since a few days i am programming java (for school). but i dont get it.. i tried to fill the 4x4 matrix with random generated numbers (1-16) and wrote a method, that they could only be used once. …

Member Avatar for JamesCherrill
0
659
Member Avatar for crizied

Hi, I am making a program that has a JSplitPane and its background is transparent so I add two panels with a JScrollPane on the JSplitPane.. when I add the contents in the panel it doesn't appear. This is the code that I was using: import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for JamesCherrill
0
183
Member Avatar for kedxu

This is for anyone who might find it helpful. This template... * uses double-buffering, which can help game-makers fix that glitchy screen problem * can be exported as a runnable jar file. If you're like me and had trouble making your Applet executable, this is a possible fix. * Additionally …

Member Avatar for JamesCherrill
0
316
Member Avatar for somjit{}

writting this : N = args[1].split("\\s+").length; with commandline argument like : `echo "A B C D E F G H I" | java Subset 3` , will this consume similar memory as would have been the case if i parsed the `"A B C D E F G H I"` …

Member Avatar for somjit{}
0
185
Member Avatar for NajwaMY

while (rs.next()) { System.out.println("Name: "+rs.getString(1)+"\n"); System.out.println("Age: "+rs.getInt(2)+"\n"); System.out.println("Address: "+rs.getString(3)+"\n"); } I just don't understand what is the meaning og getString(1)

Member Avatar for 1stDAN
0
205
Member Avatar for bombay1982

Why compiler gives me error when I call object MyObject ? public class ThisIsClass { public static void main(String[] args) { MyObject loan = new MyObject(); //error should be ThisIsClass loan = new ThisIsClass(); System.out.println(loan.toString()); } } It works fine when I change name of my class to MyObject or …

Member Avatar for 1stDAN
0
168
Member Avatar for Kenney_1

I'm a beginner to learn java, do you have any books to recommend for java learning? You can also give me some useful suggestions. I have learned C++ previously, will this be helpful to learn java? Here is my blog, <URL SNIPPED> , any comments are welcomed.

Member Avatar for jalpesh_007
0
196
Member Avatar for cool_zephyr

I'm trying to deploy an app into tomcat..but after uploading the war file..it the tomcat manager always shows permgen error could anyone help me why is this error occuring..my tomcat server has around 128MB runtime memory and the war file is only around 25MB?? thank you.

Member Avatar for ~s.o.s~
0
227
Member Avatar for Tobyjug2222

Hi there, Recently I've started using a client called Tribot which allows me to automate playing a game. The Client has been crashing (for example I was running 8 clients simultaniously last night) and one by one, they crashed over time and produced there error logs in the start-up directory …

Member Avatar for Tobyjug2222
0
1K
Member Avatar for happygeek

Java vulnerabilities have hardly been out of the news during the last year. Here at DaniWeb we've covered a number of the stories as they surfaced: [Java in the cross-hairs: the security debate rolls on](http://www.daniweb.com/software-development/java/news/445532/java-in-the-cross-hairs-the-security-debate-rolls-on), [Is Java 7 still insecure? Oracle Patch doesn't fix underlying vulnerability](http://www.daniweb.com/software-development/java/threads/432479/is-java-7-still-insecure-oracle-patch-doesnt-fix-underlying-vulnerability), [Update my insecure Java …

Member Avatar for masijade
3
363
Member Avatar for murali2489

Hi All, I have a Jtable with six columns. I am displaying the contents of my database into my Jtable. Its working fine. But I am facing trouble updating the changes done in Jtable cells to appropriate database cell. In the below code when I tried to edit the First …

Member Avatar for murali2489
0
370
Member Avatar for Peter M.

I have a INDEX.html and some <DIV>'s that are populated with external HTML-files using jQuery LOAD() Some of the external HTML's also contains Javascripts. Seperately these external HTML's all perform well, when displayed in the DIV the script won't run. There should be a solution to this but I cannot …

Member Avatar for stbuchok
0
227
Member Avatar for ganges

is it possible to add and remove elements in ArrayList dynamically while run time from command prompt

Member Avatar for somjit{}
0
120
Member Avatar for ZER09

function setDefaultValue(str){ var arrayValue = new Array(); var rowString = str.split(NextRowSepConst()); for (var i = 0; i < rowString.length - 1; i++) { var valueSplit = rowString[i].split(ValueSepConst()); for (var ii = 0; ii < valueSplit.length - 1; ii++) { var a = valueSplit[ii]; arrayValue[i][ii] = valueSplit[ii]; }; }; globalHasDefaultValue = …

Member Avatar for ZER09
0
631
Member Avatar for techyworld

hi am building a web application using maven,eclipse,tomcat. after resolving my dependency, am getting this error. anyone can help how to solve this? cvc-complex-type.2.4.a: Invalid content was found starting with element 'http:basicAuthSupplier'.One of '{"http://cxf.apache.org/transports/http/configuration":client, "http://cxf.apache.org/transports/http/configuration":authorization, "http://cxf.apache.org/transports/http/configuration":proxyAuthorization,"http://cxf.apache.org/transports/http/configuration":tlsClientParameters, "http://cxf.apache.org/transports/http/configuration":authSupplier, "http://cxf.apache.org/transports/http/configuration":trustDecider}' is expected. jaxws-web-context.xml here the code where am getting this error: <http:conduit …

Member Avatar for techyworld
0
350
Member Avatar for cobalt555

So I am trying to get these radio buttons to respond to input but I have searched the internet and can find no code examples to show me how to do this. I also want to get the spinners to function in conjunction with them so when a product is …

Member Avatar for cobalt555
0
256
Member Avatar for thewayoftheduck

Question Presented: Write a program that computes the following summation series using the rational class: 1/2+2/3+3/4+...+98/99+99/100 You will discover that the output is incorrect because of integer overflow. Evaluate the sum using doubles, the Rational class, and the BigINteger Rational class. So far this is what I have come up …

Member Avatar for JamesCherrill
0
705
Member Avatar for rgrs2007

Hi I am new to this forum and i was just wondering if the following scenario is implementable. Suppose a thread is reading a file and dividing it into chunks of data(lets say in the form of arraylist, where each line corresponds to a value in arraylist). Each chunk of …

Member Avatar for JamesCherrill
0
296
Member Avatar for KellzDD

I am trying to write a method that accepts the array of houses and a price, priceLimit. The method will return an array of houses for the houses whose price is less than or equal to priceLimit. I want to make a pass over the data to determine how big …

Member Avatar for KellzDD
0
273
Member Avatar for lena1990

hi all, i install java application with socket server that connect to access database inside the server and i create a client application that connect to the server and send sql statement to be executed by the server . i install the client application on 5 computers the first entry …

Member Avatar for JamesCherrill
0
380
Member Avatar for Vinodh_1

i am using the below code for creating the connection to database. connectionURL = "jdbc:oracle:thin:@//testdsfsdfgs:1521/TEST"; conn = DriverManager.getConnection(connectionURL, userName,Password); i want to set the transaction time out. How can i do that. Please some one help. Thanks in advance

Member Avatar for Vinodh_1
0
1K
Member Avatar for rgrs2007

I am working on a simpler version of the following question: http://www.cs.ucf.edu/courses/cnt4714/spr2011/prog1.pdf and have simplified the problem in the following manner: SO: input pipe is PIPE4 and output pipe is PIPE0 S1: input pipe is PIPE0 and output pipe is PIPE1 S2: input pipe is PIPE1 and output pipe is …

0
155
Member Avatar for techyworld

hi am having problem to deploy my java web application. I'm using myEclipse for spring 10 and tomcat 7. am having these errors: org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/projectname] startup failed due to previous errors Anyone know how to solve this issue?

Member Avatar for cool_zephyr
0
293
Member Avatar for nira9

i just wanted to know for future which language is good php or java thanku..:)

Member Avatar for stevie.whalen
0
264
Member Avatar for sub-zer0

Hello how can i check the divisibility of a number without using % / +... I am new at coding so hope someone can help I think my code sucks ..i read forums and this is the best i can do import java.util.Scanner; public class Divbythree { public static void …

Member Avatar for sub-zer0
0
288
Member Avatar for amolelexengi
Member Avatar for jwenting
-1
71
Member Avatar for ummusalaam.alaphat

Hi am very much interested in progrmming with java and my idea is developing a project that can solve linear programming problems for minmisation and maximisation.

Member Avatar for jwenting
0
76

The End.