32,199 Topics
| |
I am linking to a webservice all works fine. Below is my codes. private static void printSOAPResponse(SOAPMessage soapResponse) throws Exception { TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); Source sourceContent = soapResponse.getSOAPPart().getContent(); System.out.print("\nResponse SOAP Message = \n"); StreamResult result = new StreamResult(System.out); transformer.transform(sourceContent, result); } I am not too … | |
You have been hired by an amusement park company to write a JAVA program that prompts a Person to enter their age and height and to find out if they are eligible to ride. A person is eligible to ride if their age is above 9 years and their height … | |
I dont know is it usful? Its now Oracle , not SUN ,please tell me whether this book wil be helpful for exam?Thanks! | |
I tried dreamincode but the mods there all seem to be on their periods tonight so i have come here to humbly beg for help. First off let me start by saying I'm a new programmer and I am frustrated and cofused by the class i'm in prg 420. I … | |
# I am using: # -- Libgdx and Box2d. ------------- # what I am trying to do: # -- I want enemy to move right and left. if enemy hits the wall than move the over way. ---- # My plan: # -- I have two senors set up on … | |
//My objective of the program is using scanner class to get the input from the user and use a dialog box(JOptionPane) for output. When I compile the file I was able to enter the input from the scanner class, but I did not see the dialog box for the output … | |
//When ever I add TextFields the frame disappears.line 73-76,108-111; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class fitness extends JFrame { private double height=13.5; private double weight=45.3; private int age=20; private String sex="Male"; public fitness(int x){ this.age=x; } public fitness (double wei,double hei){ this.weight=wei; this.height=hei; } public fitness (double height,double … | |
| Hello developers, i have got a problem that i have been trying to solve all day and would be glad if anyone here can help. I have a Java port scanning application which scans for open ports and displays the results in a textarea called "taOutput" when the user clicks … |
hey, i have stored a few images in mySQL database as BLOB.Now i want to retrieve and display the images on frame as a gallery/grid view.I have displayed one image in a frame but when i tried to add more images it fails...Can anyone help with sample code,coz im new … | |
I have text file that has multiple x and y coordinates. I'm reding them in and trying to send them to drawrect. The problem I'm having is that the drawRect will only draw the last x and y that is read in here is how I'm reading in. for (int … | |
how do I make a pictur move?.code: public class picture extends JFrame{ private static final long serialVersionUID = 1L; JLabel ball; int h = 100; int l = 200; public picture() { System.out.println("working"); Icon bb = new ImageIcon(getClass().getResource("ball.jpg")); ball = new JLabel(bb); ball.setBounds(10, 10, h, l); ball.addKeyListener(new KeyListener() { public … | |
To my Inventory Program Part 4 there are three parts and I was able to compile successfully with the first two. I end up get several errors with part 3 and I am unsure to why. This is what I have. import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.FlowLayout; import … | |
Hi All, I'm running through "Head First Java" and I'm hitting a snag with an exercise involving RMI. My Classes ---- package myremoteimpl; import java.rmi.*; import java.rmi.server.*; /** * * @author Michael */ public class MyRemoteImpl extends UnicastRemoteObject implements MyRemote { public String sayHello() { return "Server says, 'Hey'"; } … | |
CharToString.java: Declare a character variable (char ch). Read a character into the variable ch and then store it in a String variable using the valueOf method. Print out both the char and string value at the end to test your program. (Note that the valueOf method is static... this means … | |
[CODE]Hi every one, hope u r fine. i have a java program and it call matlab exe file ,but i have a problem in run time it is so so slow . i need a help in how to make this faster, i will be grateful for any help Hint: … | |
Hi guys I've written a very simple program that reads in some files, does some cleanup on the data and then creates a sql statement to insert the data into a table. Now I have 125 of these fies of varying sizes and on some (not all) of the files … | |
I wanted to know how i can print the purhcase that the user got. Thank you. import java.util.Scanner; public class VendingMachine { private double chips; private double cookies; private double soda; private double gum; private double candy; private double energyDrink; private Scanner kb; private int dollar; private int quarters; private … | |
1) What are three ways of creating a String object ? 2) What is the difference between string concat method and simply adding 2 strings ? | |
Hi all, What is the difference in inheriting a class and instantiating a class, as both allows to inherit properties from the base class.I know there is a difference in both, but i want a clear idea on this. Kindly, can anyone help.Thanks in advance. | |
Alright, so I am simulating a rice roll 100 times, repeatedly. It's getting some whack numbers for some reason, I can't find the problem in code. I have done some printing of the different variables and it seems fine, but I know theres something wrong. package com.github.geodox.dicerollingstats.main; import java.util.Arrays; import … | |
You have been hired by an amusement park company to write a JAVA program that prompts a person to enter their age and height and to find out if they are eligible to ride. A person is eligible to ride if their age is above 9 years and their height … | |
Critically analyze the following statement "Multiple inheritance can be achieved without interface"? | |
Hi guys, I have a non-cse background but due to some reason i have to submit a java project at my college. As a result i downloaded a employee management project from a website.It has some jsp pages , some java class files , folders named META-INF and WEB-INF.I used … | |
Hi everyone, When i click on the ireport icon, it shows the splash screen but then nothing happens. I tried to override the default jdk path in ireport.conf file and changed it to the jdk path i am using but it didn't solve the problem. Then i uninstalled the software … | |
Hi everyone, Please help me to register the sql query exceutor in netbeans and java. I am using ireport 5.5.1 and netbeans 8.0 with jdk 8. The problem is that when i run the reports within netbeans, they run but when i build the project and run it from a … | |
Hey guys, I am almost at the end of my assignment but when I showed my code to a friend and also my demonstrator I was told the way I was passing the data between the three classes for "menu prompt (2)" was wrong. My original program had methods I … | |
i have problem reading the data from text file. The first line in my text file should go to 1st row but it go to the column, here is my code. JScrollPane scrollPane_1 = new JScrollPane(); scrollPane_1.setBounds(30, 288, 944, 207); frmDevelopNewProgram.getContentPane().add(scrollPane_1); String[] columns={"Program Code","Program Name" ,"Major","Abbreviation"}; lap_table = new JTable(); … | |
i have a text field with name "date" and i want to retrieve all he records from database when user write a specific date on that text field.......I am using MS access data base......Query below is not showing any record String date=request.getParameter("OrderDate"); String query = "SELECT * FROM DoorStepRequests where … | |
This is the message it gave me :( Pls help Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:205) at PPMSPrototype.initComponents(PPMSPrototype.java:841) at PPMSPrototype.<init>(PPMSPrototype.java:11) at PPMSPrototype$26.run(PPMSPrototype.java:1333) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo main.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre ad.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:150) … | |
I have an assignment that is due tonight and I ran into a few errors. The first two parts compiled successfully just the third one ran into errors. I don't know what went wrong. The errors I am getting are C:\Users\Owner\Desktop\Inventory Part 3\inventoryTest.java:51: error: cannot find symbol NumberFormat nfc = … |
The End.