32,199 Topics
| |
I've recently been programming J2ME apps for Mobiles when it struck to me - something I remembered: "A virus infected my mobile!". I find it strange. Obviously, the regular EXE files don't work on JVM so can no way infect mobile phones. So there should be Java-specific viruses, but J2ME … | |
I'm running MSSQL Server 2008 I did this: set CLASSPATH= C:\Program Files\Microsoft SQL Server JDBC Driver 3.0\sqljdbc_3.0\enu\sqljdbc4.jar (I dont know where I can check if this has been executed correctly) Then when approaching this URL: [url]http://localhost:8983/solr/db/dataimport?command=full-import[/url] Using this data-config.xml: [code=xml]<dataConfig> <dataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://localhost:1433;databaseName=wedding" user="sa" password="r00kw0rst" /> <document name="weddinglocations"> <entity name="location" … | |
I am interested in Current threads, such as : rare program :s [url]http://www.daniweb.com/forums/thread300723.html[/url] how to create 2D array of enumeration values [url]http://www.daniweb.com/forums/thread300738.html[/url] which have a common goal: to store the names of Enums objects in a 2D array of String. For example, we have a pack of porker cards defined … | |
Hi all, I've got a problem relating to error reporting. In the code posted below, when the user actually presses enter after reading the error, the program does not loop back to the main menu, but merely repeats the error. If I remove the "input.nextLine();" code in line 17, then … | |
Hi all, I am having a trouble in identifying Java Memory Leakage in my java program.I want to check where the memory lecakage gets occurs.Is any tools are available for the java program to analyze the memory leckage. Thank you, With Regards, Prem | |
I cannot get Java script to work on my windows XP, SP3. Any assistance out there. I have checked the settings for Java and all appear to be in order (ie: tools, internet options, etc. All java settings are set to run. I am stumped. | |
People, this is all my code is. I am trying to change an Integer Object to a primitive int, to use them in the getValue and Compute(Integer i) methods . Compiler Says NO.. I have tried both the solutions below ... and got the following errors i.intValue(); // no method … | |
Hi, I am having issues while comparing of cards.As i starts the card game and clicks on first button the card opens and when i click on the any other button if the button i have clicked matches with the image on the first button both the cards stays open … | |
Below is code taken from [URL="http://download.oracle.com/javase/tutorial/java/javaOO/QandE/enum-answers.html"]Sun Java Tutorial[/URL]. From my reading of the code the first time this loop executes should it not populate cards[1] with the first card skipping cards[0]? I've tested the code in eclipse and it seems to work properly first populating card[0] so I'm hoping somebody … | |
Hi guys, Just a quick question, I'm working on a general stack class for use with my card game and rather than creating an overloaded constructor for every single object and primitive type I'm wondering is there a way to supply the data type when invoking a basic constructor? Basically … | |
Hi everyone, I need help in my school project which requires me to send data from a mobile application to a database table. The inputs for the table data is through textfield and when i press the submit button, it will send the input fields into the database table. Will … | |
how to create 2D array of enumeration values foe example i have enum Days {Day1,Day2,Day3} enum Subjects {Subject1,Subject2,Subject3} how can i create its two dimension array two show these values in rows and coloumns | |
please help me how to make different kinds of triangle ,using asterisk("*"),using netbeans.. please.. :(( java.. : input length first then?. * ** *** **** ***** (depends on the length) ***** **** *** ** * (depends on the length) ----* ---** --*** -**** ***** (depends on the length) ***** _**** … | |
hello, i want to write a program that store subjects and days in two enumerations and their values in rows and coloumn using 2D array. how can i do this ? see the image below: [url]http://img718.imageshack.us/img718/3967/sufyan.jpg[/url] So far i've done this, [CODE] class EnumProg { enum Days {Monday, Tuesday, Wednesday, … | |
I'll make it short. First is how do I change the text colour of a [B]disabled[/B] button. I've tried HTML and setForeground but doesn't work. Second, when I want to click a button, I can't move my cursor or the event will not fire. I used addMouseListener because I also … | |
Check my program....i'm printing the values of 2-D array in a ladder form. [CODE] int [][] TwoDArray; TwoDArray = new int [4][]; TwoDArray [0] = new int [1]; TwoDArray [1] = new int [2]; TwoDArray [2] = new int [3]; TwoDArray [3] = new int [4]; [/CODE] This is working … | |
I'm trying to connect to Facebook using Java Sockets and I get a Http: Bad Request Error. The hostname I'm using is "facebook.com" and for the GET request, I have used the following lines. out.write("GET / HTTP/1.1 \n"); out.write("Host:[url]www.facebook.com[/url] \n); The above lines work when the host is [url]www.google.com[/url] or … | |
Can someone help me in connecing the windows using java...? I am doing a project in virtual class..So i need to link the windows. Please help... Thanking u all in advance. Regards, Shreya. | |
hi friends iam sivaji iam devoloping a software for that i need code for sending sms to mobile phone i am devolping my application using java servlet technology if anybody having this program please send the code for my e-mail SNIP please help to me | |
I am trying to create an array of 20 values the have 4 methods that 1st will create a total of all values listed, 2nd search the array and return all values less than 5.00, 3rd return the average of the values using the output method from the first method … | |
I'm relatively new to Java and I was trying to make one my programs more accessible to my non-computer savvy friends with java web start. I took my .class file and archived it with the command: [TEX]jar -cf TabbedLatinHelp.jar TabbedLatingHelp.class[/TEX] I then created a .jnlp file and uploaded the .jar … | |
here's my code, i wanted to add another button that would have its own ActionListener. NOTE: its in object oriented style. i wanted to add these codes in my main class for my additional buttons, but my problem is i dont know how to make their ActionListeners. [CODE]myButton2=new Button("GET DIAMETER"); … | |
Hello, I'm trying to figure out this method were i add courses to a student. and then call it in the main method . [code] public ArrayList getCourseList(){ return courseList; } public boolean addCourse(EnrolledCourse courseName){ for (int i = 0; i <= courseList.size(); ++i ) if(courseList.contains(null)){ courseName.getCoursename(); this.courseList.add(courseName); return true; … | |
I am trying to make a rectangle which can be resize when i stretch its borders and this rectangle will drag n drop also.this rectangle will grab a jpeg picture and paste in new panel area.nay help is appreciated thank you.... | |
Hi frinends, I am Arunkumar I have to write a code to fetch every information from a computer including Hardware ,Software and every thing from system....i wrote code to get hardware information but i need help to fetch software information from system..please any one can help me | |
Hi, Can any one say what is hte difference between contains and containsValue in hashtable. Thank you, With Regards, Prem | |
Hi, all Can anybody tell me how to get the current date in a java program? And, I want to insert the date into a database with a date/time format, is there any difference from insert a string? thanks for reply | |
Check my program....i want a decrement of 10 for the value of K, how can i do this ? [CODE] public class arrey { public static void main (String [] args) { int i, j, k = 100; int [][] TwoDArray; TwoDArray = new int [4][]; TwoDArray [0] = new … | |
HEEELLLLPPPP!.... i am stumped.... i am a student and have access to the server at my college.... on this server they have installed javac and i am running my java on vi text editor in a virtual server. okay i can import all kinds of things... but i cant import … | |
|
The End.