32,204 Topics
| |
Hi, I'm hoping someone out there can help me, I am trying to create a basic application that transmits GPS co ordinates of the device to a server. I am a complete noobie to socket programming (well, I covered the bare basics in college this year). As a stepping stone, … | |
Hello, Me very new to java prgmng and got to redesign a C proj in java. Might be very insane question but not for me. My c poject has a file, called headerfile.h and the structure looks like this #define ID_File1 0x6F01 #define ID_File2 0x6F02 ... .. likewise all constants … | |
I have a program that creates a GUI with three text fields in it, and two of these fields is supposed to accept a numeric value. I want to know how to get the numeric entries and store them in a variable for further calculations please. I know how to … | |
requirement: Design, Implement and test the Invoice class An Invoice class groups InvoiceItems into a single object. Each Invoice has a unique serial number:the first Invoice has serial number 1, the second has serial number 2, etc. (Hint: implementing this will require a static variable.) A newly created invoice will … | |
I have a project. the project is: In the game of craps, a pass line bet proceeds as follows. Two six-sided dice are rolled; the first roll of the dice in a craps round is called the "come out roll." A come out roll of 7 or 11 automatically wins, … | |
I am going to start learning about Spring framework. Please tell me from where i can get good tutorial for learning same with example. please send me(Suggest me) links or material regading Spring, so i can learn it in better way. Thanks a lot. | |
Please note I AM not a programmer, i run my own company. trying to built calculator by myself. I have software background but someone helped me write this code. Its working but not showing the calculations. If someone can reply me with solution or new code that will be great. … | |
int d=num%10; rev= (rev*10)+d; num=num/10; //Why is it reverse? please explain. | |
Here is a section of code from a MODEL class of the MVC Framework: public TableModel getTableData() throws SQLException { try { String sql = "SELECT date as 'Date',eventName as 'Name', time as 'Start Time' FROM Event"; pst = conn.prepareStatement(sql); rs = pst.executeQuery(); TableModel model = (DbUtils.resultSetToTableModel(rs)); return model; } … | |
Heloo, could you please help me? its really urgent as this is my project. In this code, i want to total up number of people who are pending in this category. Then link it to another page. When going to the link page, it will retrieve the name of the … | |
Is this possible? I've tried Runtime.getRuntime().exec("javaw.exe <COMMAND_ARGS> \"" + wu.getCurrentUserDesktopPath() + "/file.txt \""); This is a personal learning experience for me. As I am a self-taught. | |
Hi friends, What is RAR file in j2ee. Please give me directions to creatre RAR files. Please help me. Thnaks & Regards Jasonmark | |
Hi, I am not able to understand DSW ALgirthm Its process of creating backbone or vine and creating balanced Tree. By rotation of Vine(BackBone) what is being said I couldnt Understand. Read few articles but Couldnt Understand Much. Can some one explain me about DSW Algorithm. And Also I tried … | |
Hi all, finally following the advice on this forum I got hold of the Deitel and Deitel java how to program 9th edition! Great book I must say so far (only got to chapter 3). Now, I am doing some of the exercises as I go along, and today I … | |
Hello, This doesn't seem to fit any particular forum, but I thought it might fit best here. I need to be able to add Java syntax highlighting functionality to a form on an internal website. Does anyone know of a syntax highlighting framework that supports Java and can be embedded … | |
Hi, I am new to this forum having a limited experience in programming(only simple C++ and basics of Java) May some willing person help me the steps to make real applications(mobile or computer) using this programming language? ` | |
This code works fine but it would be too long if the score is 50 or over. Is there any way to make it shorter and quicker? I tried to use for loop statement but it didn't work well. background(backgroundChange); if (score >= 5 && score < 10) backgroundChange-=0.8; else … | |
java mobile applications are what i need to specialize within the next 6 months. if so can I? how? i know the basics of java programming. | |
Hey, I'm making a simple moving car at night with its headlight bulbs and I'm using PROCESSING software, not java. What I tried to make is when the car touches the right border, the headlight bulb of the right side of the car should be changed to the left side … | |
public class EventView extends javax.swing.JFrame { Connection conn = JavaConnect.ConnectDB(); PreparedStatement pst = null; ResultSet rs = null; private EventModel model; /** Constructor */ public EventView(EventModel model) { initComponents(); this.model = model; updateEventTable(); } public void addEventListener(ActionListener al) { addEventButton.addActionListener(al); } /* public void clearListener(ActionListener cl) { clearEventButton.addActionListener(cl); }*/ public … | |
I have a problem with this... import javax.swing.*; import sun.audio.*; import java.awt.event.*; import java.io.*; public class PikaPlatformer { //----------------------------------------------------------------- // Creates and displays the application frame. //----------------------------------------------------------------- public static void main (String[] args) { JFrame frame = new JFrame ("Direction"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new PikaPlatformerPanel()); frame.pack(); frame.setVisible(true); } } How … | |
Hi, I am trying to build a Music player in Java using Jlayer Library. Hi am using AdvancedPlayer and its play() method for playing song. It plays the file but i does not stop until song is finished even Stop button is not pressed,window listener doesn/t works. I am unable … | |
Returns true if the string represented - by the object it is on the same string is represented by the object str. Otherwise false is returned. This system must write the recursion without using any loops. So I did it and it looks like this: public boolean equals ( StringList … | |
Salut à tous. j'ai essayé d'installer apache solr serveur pour mon drupal, mais j'ai le message: "unable ti access jarfile start.jar". après mes nombreux essais, j'obtiens: "invalid or corrupt jarfile C:\[suivi du chemin de monfichier] j'ai besoin de l'installer. et rien des réponses que j'ai pu lire ici ne m'a … | |
import java.util.Scanner; public class Homework1 { /** * @param args */ public static void main(String[] args) { Scanner scan = new Scanner(System.in); final int ROW; final int COL; int integar; int total; System.out.println("Total number of rows: "); ROW = scan.nextInt(); System.out.println("Total number of colums: "); COL = scan.nextInt(); int [][] … | |
Hey, I have the following code in C-Sharp: byte newByte = byte.Parse(hex, System.Globalization.NumberStyles.HexNumber); What's the equivalent in Java ? Thanks ! | |
I have one problem at the line 20-23. What I need is when the blue box touches the red rectangle, the blue box gets resetted (it goes back to where it starts). However, the problem is, it doesn't touch the red rectangle area properly. Any suggestions? Thanks in advance. float … | |
I'm trying to display a few Jlabels in the output of my actionlistener. I have a combobox included in the fields I needed added. i attempted to use a Jtable but had issues getting the selected item from the combobox. I choose to this method because I had already had … | |
Hi, The question might be little confusing. I have recently joined smart card testing team and its all new stuffs to me. I need ur help in suggesting suitable IDE for writing test cases to test SIM OS & related applications. I insert the Native SIM card into card reader … | |
I am trying to make a guessing game that lies one-third of the time that the guess is too high (it says it is too low when it is actually too high). And it never lies about the guess being too low, nor does it lie twice in a row … |
The End.