35,618 Topics
![]() | |
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 = … | |
For my Java homework I had to make a program that simulates 100,000 people going 25 times around a monopoly board and finding the percentage times a space is landing on. I get this error when I run it. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 39 at Monopoly.analyze(Monopoly.java:86) at TestMonopoly.main(TestMonopoly.java:6) Here … | |
i need someone to assist me in writting lamda expression. THE CODE IS ABOUT 15 LINES use this code snipt List<fruit> fruits = createFruitArrayList () ; Frit LargeApple = null; for (Fruit fruit:fruits) { if (fruit.getType() == null largeApple = fruit; } } } just rewrite plz | |
I'm trying to read a text file of a graph and print information about the graph including the order and size of the graph, rather it is a directed or undirected graph, if it is directed the in and out degree, and the and a list of all vertices for … | |
Hi, I'm a beginner with Java, can anyone tell me where my error is, I'm sure there's something I'm missing here with the array logic: public void scalarMultiplication(int c) { for( int i=0; i <values.length - 1;i++){ for(int j=0; j < values.length - 1;j++){ values[i][j] = values[i][j] * c; } … | |
Is there any syntax error in this code or query because i am not getting the required report? I have created a JFrame with JDatechoosr. When i select the dates and click view report, it gives me empty report while i know there is data within the specified date range. … | |
package pkgnew.approach; import java.io.*; import java.io.IOException; import java.util.*; import java.io.BufferedReader; import java.util.ArrayList; import pkgnew.approach.NewClass1; public class NewApproach { public static void main(String[] args) { NewClass1 no=new NewClass1(); BufferedReader br = null; Date d1; int n, c, d,k, swap,i=0,j=0,no_of_selected_item=0,newsupport=0,multiply=1,support=0,t=0; int numItems,numTransactions; double minSup; long diff; String configFile = "F:\\DP1\\DPmodification\\Config.Datasetsmall.txt"; try{ FileInputStream … | |
<Simple copy of teacher's homwork specification deleted by Forum Moderator> | |
What is a goodway to code a btn ation. To inialize adeaktop app from another desktop app. More over,run thejar use a eclipes build.xml . I built both apps in netbeans environment . | |
hi, i want to disable the back button in IE browser. i have the code but it's not working logout.jsp [CODE] <script language="javascript"> window.history.forward(); </script> [/CODE] i don't know where to put the script code it is put in the logout.jsp file or before please help me out of this | |
![]() | Hello somebody should please help me with codes to run this assignment below: It should have a button that when clicked causes your code to simulate rolling a dice 100 times. Your program needs an array that will count the number of times that each of the six possible numbers … ![]() |
I have a webservice to be accessed which is based on request and response. Below is how my php codes are works perfectly fine. class fNewRequest { function fNewReq($pTK, $pVID) { $this->pTK= $pTK; $this->pVID= $pVID; } } /* Initialize webservice with your WSDL */ $client = new SoapClient("http://**.**.**.*/**/**/***/webservice.asmx?WSDL"); /* Set … | |
I want to run a java application which calls a web service. Everything works fine from the netbeans ide, but fails when I run the .jar generated. What could be the problem? How can I check the content type that the error is pointing at? The error says: **SEVERE: SAAJ0537: … | |
I struggle to find a solution at my java project... It gives a lot of bonus as well.. so, i would really appreciate it if someone is willing and expert with java and can help me with my project, if he has time to help me with it. :) If … | |
try { /* Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); String loc = "jdbc:odbc:Library"; String filename = "C:\\Users\\Krishal Lad\\Desktop\\Library.mdb"; String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="; database+= filename.trim() + ";DriverID=22;}"; // add on to the end con = DriverManager.getConnection (database);*/ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb,*.accdb)};DBQ=Library.mdb;"; System.out.println("connecting to database..."); Connection conn = … | |
I am trying to execute xmlaccess.bat file of web sphere Portal server uisng java but not getting any issue as well as no output but when i execute this bat file through command prompt,its working Fine..why it is ? dont'Know..please Help me out... MyAPP : public class BatchAPP { public … | |
Not sure what it is nedding I'm needing help on coding this program I get back some 2 errors. What I have is: public class Inventory { private double ItemNumber; //to store Item number private String ItemName; //to store Item name private double UnitsInStock; //to store number of units in … | |
Can anybody please solve my error: [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project maven-war-plugin: Compilation failure: Compilation failure: [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[42,25] error: package javax.servlet.http does not exist [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[43,25] error: package javax.servlet.http does not exist [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[92,3] error: cannot find symbol [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[93,3] error: cannot find symbol … | |
I have two different format of code for insert query using jsp+servlet+mysql. Code-1 ====== Class.forName(JDBC_DRIVER); // Open a connection out.println("Connecting to a selected database..."); con = DriverManager.getConnection(DB_URL, USER, PASSWORD); out.println("Connected database successfully..."); // Execute a query st = con.createStatement(); sql = "insert into users (name,email,password) values ('" + name + … | |
for my assignment I am to only add the sort and total inventory methods in the inventory class. And not create an array in the inventory class at all. My inventory class should contain all the variables needed to use with the two new methods: sort and calculate total inventory.By … |
The End.