36,051 Topics

Member Avatar for
Member Avatar for runlevel3nut

I'm self-studying python, and more advanced python programmers have pointed out to me that I'm learning an obsolete instruction set and the use of obsolete tools thanks to being taught about an old version of python rather than the most current one. The website where I'm self-studying also offers chances …

Member Avatar for runlevel3nut
0
290
Member Avatar for jakubee

Hi everyone, I'm doing a RMI chat application for my client-server distributing programming module. I have stuck nearly at the very end of it. What I doing is: running the server. running the the UI, connecting to the server. Loging as user1. sending the priv messagae to other user. Replaying …

Member Avatar for JamesCherrill
0
251
Member Avatar for while(!success)

Hi guys, I have an ImageButton control in asp.net calling a javascript function to display it in block. The elements have their own css classes, but they do not appear in the context that I gave them. I am assuming this is a problem with my css because the javascript …

Member Avatar for JorgeM
0
162
Member Avatar for sunnykeerthi

Hi, i have a html page with 3 frames(Index.html), and the preview is as in the screenshot. Here in Welcome.html i have a button named block. when i click this button i want left.html to be disabled(the frame in left side), i'm able to do it., but the form elements(the …

Member Avatar for AleMonteiro
0
642
Member Avatar for dksinghcomnez
Member Avatar for ruthvik.vijaykumar

I am creating this Word Processor...for my college project...an i hav this bugging problem, i have this text area which has a popup menu,this popup menu has a listener(below)..now comming to the point when i right click the TextArea a grau colored popup come up(all the menu items hidden) only …

Member Avatar for stultuske
0
143
Member Avatar for subramanya.vl

I need the algorithm not the code . I am on a project where I should not use any third party libraries other than java sdk. I am supposed to convert a text file to an xml file. I know that there are SAX parsers and DOM parsers available and …

Member Avatar for peter_budo
0
131
Member Avatar for odose

How to select data from different tables in a single database and show in a single jtable.. Pls I need help

Member Avatar for peter_budo
0
171
Member Avatar for beep

I seem to have screwed the whole process of updating Java to 10 simply because I could not stop the stupid process after I realized that I couldn't take 9 off at the same time. Uh, kinda stupid thing to try, true, but anything worth its salt won't let you …

Member Avatar for JamesCherrill
-1
167
Member Avatar for tnimblett

Please tell me why I am getting a "bad operand type" I'm trying to to do a comparison on a range of value. Please help me fix. if (-13683360 <= rgb <= -13683381)

Member Avatar for tnimblett
0
108
Member Avatar for LALITVYAS

i want to remove complete image from an image file(like JPEG,etc) into an editable format in java..... means in short i want to remove image from an image file in java

Member Avatar for JamesCherrill
0
86
Member Avatar for mumaga

Hi, I am working on the World of Zuul game. My question is about these three classes: Room, Inventory and Game. The game class uses an instance of Room called currentRoom. In Inventory Class, I want to write a method to check if a certain item is present in the …

Member Avatar for JamesCherrill
0
96
Member Avatar for dennisme

Test Class @Test public void testCharRemover() { TextModifier remover = new CharRemover('x'); StringBuilder buff = new StringBuilder("a bx xd xx"); remover.modifyText(buff); Assert.assertEquals("a b d ", buff.toString()); } ------------------------------------------------------- /** * Removes all occurrences of the character passed to the constructor * from the input when {@link TextModifier#modifyText(StringBuilder)} * is called. …

Member Avatar for Taywin
0
100
Member Avatar for tingwong

Hi everyone I have a final exam for my Java class tomorrow and wondering if anyone could tell me if my answers are right? The questions are True/False. Thank you all! 1. True/False — An interface may only contain method headers. 2. True/False — An interface may not contain instance …

Member Avatar for stultuske
0
301
Member Avatar for xterradaniel

I was given a programming exercise which calls to: "Write a program to create a file named Exercise09_19.txt if it does not exist. Write 100 integers created randomly into the file using text I/O. Integers are separated by spaces in the file. Read the date back from the file and …

Member Avatar for nate.nelson.566
0
3K
Member Avatar for bymak87

I am supposed to create a file that will generate 100 random numbers and then sort them. I am stuck on the sorting. I think it would be a really simple solution but i cant seem to figure it out. I have tried the arrays utility and creating a method …

Member Avatar for nate.nelson.566
0
1K
Member Avatar for riahc3

Hi This is related to 3 threads: http://www.daniweb.com/software-development/java/threads/438729/recursive-ftp-listingmakingcreatingetc-access http://www.daniweb.com/software-development/java/threads/439941/recursive-ftp-listingmakingcreatingetc-access...-part-2 http://www.daniweb.com/software-development/java/threads/442142/recursive-ftp-listingmakingcreatingetc-access...-part-3 At first, I had NO clue where to even start. Over a couple of weeks, Ive slowly but surely started to make the process correctly but Im stumpped so (for the third time) ive thought of rewriting everything from sratch. …

Member Avatar for riahc3
0
255
Member Avatar for marzii

hiii!! please help me!! I want to see my outputwindows in the form that I create it!!! like this: **run: C:\Users\vista.netbeans\7.0\var\cache\executor-snippets\run.xml:48: Cancelled by user. BUILD FAILED (total time: 2 seconds) ** this is all of things that java shows in output win!!! can you help me to see that's in …

Member Avatar for stultuske
0
101
Member Avatar for tiggermesho

I am trying to get at least 5 minimum values from an array of integer my code attached works but it skips few values public static void main(String[] args) { int array[] = {0, 1, 2, 1, 4, 5, 1, 7, 8, 1, 10, 11, 12, 13, 1, 15, 16, …

Member Avatar for jalpesh_007
1
235
Member Avatar for gbenro.selere

Hello People, I am trying to create a java program that inputs an infix expression, then gives the output in postfix and prefix. So far the code compiled without errors but the answers for the postfix and prefix are not coming out correctly. Also the outputs come out wrong when …

Member Avatar for Taywin
0
251
Member Avatar for javanoob101

Hello everyone! It has been quite sometime since I was on Daniweb, and a lot has changed. Anyway, I have decided to "fix" my old Java school ISU and make it better. (I am not in school so don't worry, I'm not cheating.) Here is my problem: I want a …

Member Avatar for javanoob101
0
179
Member Avatar for sofien.fkih

I did a code which can run cmd of windows from java, and also I stored the result of that cmd in a string variable, my question is is it possible to get a substring from that variable from where I had stored the output of the cmd. I want …

Member Avatar for sofien.fkih
0
229
Member Avatar for meowmonkey

What would be the best way (or any way) to print out a pattern, that may cut off at any point dependant on the x & y length? for example, if i wanted a pattern 4 up (y = 4) and 14 across (x = 14) I would need it …

Member Avatar for NP-complete
0
242
Member Avatar for hamidvosugh

final Handler myHandler = new Handler(){ @Override public void handleMessage(Message msg) { updateUI((String)msg.obj); } }; Would someone please let me know what the curly brace '{' and its contents mean in this context? what is the purpose?

Member Avatar for JamesCherrill
0
256
Member Avatar for trishtren

Hey, Im looking for the cleanest way to scan through a text file and remove symbols only if they meet certain conditions. So far i have been using the Scanner, but it removes them regardless and i was looking for the best way of providing conditions like those for comments …

Member Avatar for JamesCherrill
0
176
Member Avatar for miguel.honrada.pwned.you

String usn = jTextField1.getText(); String pwd = new String (jPasswordField1.getPassword()); if (usn.equals("hayley") && pwd.equals("hello")) {new Home().setVisible(true);} else {alert("Invalid Username / Password (LOGIN FAILED)");} Please see the following code above. I have been receiving problems such as "illegal start of expression" and ')' expected whenever I run my system, even though …

Member Avatar for stultuske
0
206
Member Avatar for riahc3

I apoligize for making so many topics about this......Its just that different methods have proved pointless and do not work. I want to do the following: I only have two functions right now: createfolder (Function A) and insertfile (Function B). Nothing else. My requirements are the following: Random number is …

0
68
Member Avatar for iamlaw

hi! I have a problem regarding this matter. To illustrate: i have class A, which holds a data to be passed to class B to be used in method1 of class B. I also have class C, in which a have the event to trigger method1 in class B. In …

Member Avatar for RockJake28
0
189
Member Avatar for ultracoder

Are you a freelancer or programmer for hire? Join, post & bid for projects free. Thousands of skilled programmers, skilled freelancers to choose from. Ultracoder is a developer oriented outsourcing site. Skilled programmers will bid to complete your project right now. Computer Based programs, Training, Web Services, Language Specific programs, …

Member Avatar for LastMitch
0
234
Member Avatar for crash bash
Member Avatar for SMYussef

Hello to all, I missed a class for the array section at uni and have been sick couldnt really jump back into it. Could you guys help me solving this? :) Write a Java application that does the following: 1. Reads an integer from the user represents the number of …

Member Avatar for stultuske
0
135
Member Avatar for Ahmad93
Member Avatar for laguardian

Hello guys! I need help. I have two forms: Input and Output. On the Input form, the user/s will have to input their name/s and times in which they are busy. When they click "finished", the Output form is supposed to display what they typed like their names and times. …

Member Avatar for JamesCherrill
0
326
Member Avatar for starlight09

hi I'm trying to sort 3 numbers from lowest to highest that the user enters...ex ...2 , 4, 6. I have a problem with finding(calculating the middle) number. this is what i have [CODE]//create a Scanner Scanner scanner = new Scanner(System.in); //Prompt the user to enter three floating-point numbers System.out.println("Please …

Member Avatar for Taywin
2
9K
Member Avatar for Galbatorix

Hello guys, I am a dude who used to work with vb.net until i joined college where Java rules the day. I have a project in which i have a database in sqllite and i want the db to be in the same folder as the executable file(jar in this …

Member Avatar for Galbatorix
0
97
Member Avatar for riahc3

In java what is the best way to create a truely random number sequence? One that is 100% never to be repeated again Thank you

Member Avatar for jalpesh_007
0
415
Member Avatar for Kronolynx

in this part of the code which i'm using to search if an account number given by the user is in the vector. what is the cause of the problem ? thanks in advance. if (ae.getSource() == b7) { boolean found = false; for (int i = 0; i < …

Member Avatar for stultuske
0
403
Member Avatar for javaprog200

Hello, As per wikipedia, a complete binary search tree is defined as: A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible Can someone give me an application of complete binary trees …

Member Avatar for javaprog200
0
387
Member Avatar for crash bash
Member Avatar for rachelmorg

Hey, just a quick question, I have a function to double the size of a string array and another function to use StdIn to populate the array my code is public static String[] read() { String[] a = new String[5]; for (int i = 0; i < a.length; i++) a[i] …

Member Avatar for JamesCherrill
0
142
Member Avatar for Na'Vi

Hi, I'm trying to complete this method for a binary search tree and recursion has never been my strong point. All it does is return the total number of nodes in the tree. I have an answer that finds it a different way, but I wanted trying to get it …

Member Avatar for Taywin
0
233
Member Avatar for amit.hak50
Member Avatar for JamesCherrill
0
837
Member Avatar for Violet_82

HI all, I was looking at this program and noticed few things: import static java.lang.System.out; public class Employee { private String name; private String jobTitle; public void setName(String nameIn) { name = nameIn; } public String getName() { return name; } public void setJobTitle(String jobTitleIn) { jobTitle = jobTitleIn; } …

Member Avatar for Violet_82
0
3K
Member Avatar for عشقي

hi every one, i'm writing a code to split a file into many files with a size specified in the code, and then it will join these parts again. the problem is with the joining code,it doesn't work and i can't figure what is wrong, can any one help? this …

Member Avatar for عشقي
0
339
Member Avatar for riahc3

This a followup to these two threads: http://www.daniweb.com/software-development/java/threads/438729/recursive-ftp-listingmakingcreatingetc-access http://www.daniweb.com/software-development/java/threads/439941/recursive-ftp-listingmakingcreatingetc-access...-part-2 For the "real thing" Ive decided to break it to two function: Insert file and make directory. Ill reexplain what I am trying to do. Im going to go a folder called "webfolder". If it isnt found, it is created. If …

Member Avatar for riahc3
0
324
Member Avatar for happygeek

An in-the-wild exploit targeting a vulnerability with Java 7 has led to security experts the world over warning users to disable the Java plug-in for their browser clients at the very least, and preferably uninstall Java altogether. The CVE-2012-4681 vulnerability, comprising two flaws, along with a couple of other 'related …

Member Avatar for vmk99
0
688
Member Avatar for yous

Hi Guys I need to retrieve a value from the javascript below in my html code and inject this value into a webbrowser. how can I format and invoke this script ? $(function(){jQuery.liveviewWithTable({enableCountsTable:false,enableCountTable:true,countTableElement:$("#count"),directionIn:$.getParam("Counter.DirectionIn"),liveSumUrl:"/local/people-counter/.api?live-sum.json",loadingAnimationUrl:"/people-counter/images/ajax-loader.gif",dataTypes:["in","out"]})}); Thanks a lot

Member Avatar for yous
0
158
Member Avatar for atanu.31

Data fetching I am creating a website and I am facing trouble to fetch URL data .How can i fetch URL data with the help of PHP and AJAX.And i need to fetch the data fast as facebook or the earlier version of Digg did it.If there is a code …

Member Avatar for LastMitch
0
107
Member Avatar for laian.alsabbagh

Hello, I have this java code which draws to me 100 nodes(with the sink node)(like the figure) that are connected by links, at the end I will get a tree , now I need to redraw the tree in(shortest path tree using prim algorithm )I have the nods in ( …

Member Avatar for laian.alsabbagh
0
421
Member Avatar for norsalwani.shasa

the answer of Write a class for rational numbers. A rational number is quotient of two integers, such as 2/3 or 1/2. Your class should have three constructors. One constructor takes no argument, and initializes the rotational number to 0. Another constructor takes a numerator only (the denominator is assumed …

Member Avatar for JamesCherrill
0
198

The End.