32,199 Topics

Member Avatar for
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
204
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
66
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
187
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
132
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
320
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
94
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
408
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
398
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
354
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
140
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
229
Member Avatar for amit.hak50
Member Avatar for JamesCherrill
0
826
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
336
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
319
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
684
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
157
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
396
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
196
Member Avatar for zakiraimanaz

hye guys, can you help me to create the name for the jPanel using the netbeans? i want to create the name for jpanel. please look at this link http://netbeans.org/kb/articles/gui-functionality.html#Exercise_2b for example. i just want to give a name same at the picture "number Addition". so how to write it. …

Member Avatar for stultuske
0
178
Member Avatar for latecomer

i'd like to change my code from procedural to OOP and i've got a problem when it comes to naming methods. can somebody explain to me what's wrong with this - sort.java:36: ';' expected public static int sortAscending () { - i understand that semicolon is not needed sort.java:36: illegal …

Member Avatar for Taywin
0
175
Member Avatar for minimee120

Hi all, hope you can give me some help to edit my code. I'm unaware how to merge two arrays and allocate them to a third array(of the right size) and let's just say for the sake of things, we'll call it C. I went ahead and instead used the …

Member Avatar for minimee120
0
267
Member Avatar for crownedzero

I'm working on a static method that I want to use to query mysql; I'd like the option of handing a char in but I'm only seeing string or int, what if I want to use a wildcard? '_' or an int '1', anyone have a clever solution?

Member Avatar for Taywin
0
716
Member Avatar for subramanya.vl

I have this singleton class public final class MySingleton{ public static MySingleton singletonInstance; private MySingleton(){} static{ singletonInstance=new MySingleton(); } public static MySingleton getInstance(){ return singletonInstance; } } I wanted to know is there any other simpler and better way of creating a singleton instance?

Member Avatar for stultuske
0
163
Member Avatar for crownedzero

I'm still getting my feet wet with Java and I'm not familiar with all the custom libraries that exist; is anyone familiar with a library for working with multiple sheets of a Excel workbook? I need to pull data from a specific worksheet in the book to work with.

Member Avatar for stultuske
0
145
Member Avatar for ocw91

I having a serious problem here. This is the code i wrote and i have yet run it because too many errors. I tried minimize the errors. Anyone can help me? As for now even the simple looping also shows error. If you found any other mistake, feel free to …

Member Avatar for stultuske
-1
197

The End.