35,618 Topics
![]() | |
I've created connection on java when I run the programe I get successful message , however in the service tab next to the project tab I can't see the my database connection under the database // inside method Connection connection = null; String url = "jdbc:oracle:thin@serverName"; string name ="test"; string … | |
<% String name1=(String)name.get(i); %> <input type="hidden" name="inputName" value='<%=name1%> it shows me a error how to put jsp dynamic data in value attribute | |
Hello all, I was wondering on how I would extract a number out of a String after a specified character. For example, if String s = "22+5+35" , how can I extract and store the numbers 22,5, and 35 in a ArrayList? | |
When writing my code in Textpad, I get the following error when I go to compile it in Java... Tool completed with exit code 2. I need help - this is all very new to me. | |
The video tutorial for file handling in java is made by me, here is the link http://www.youtube.com/watch?v=MkAKrAXBP0A | |
Alright so I'm coding a Quadratic Equation Solver to help with my Math Class. However the teacher requires each calculation to be written out. I have the solver working, however I'm not sure where to start when it comes to printing each step. I know I will need to `System.out.println()` … | |
Hi, I am trying to a game, and i wanted to add my images to mysql. I have managed to save and retrieve the images. I have written a code which allows me to only retrive 1 image on my jframe in a jlabel from the database, i am a … | |
Heya! Okay, so I was able to register without using javascript. I am able to update my profile without javascript. I can login without javascript, and even send private messages without javascript. I can definitely make posts without javascript. Somewhat puzzlingly, I'm unable to *respond* to posts without javascript, which … | |
Can anyone help me to improve my code so i can add more than image to my sql database. The code i use is below: Connection connection = null; String connectionURL = “jdbc:mysql://localhost:3306/mydb”; ResultSet rs = null; PreparedStatement psmnt = null; FileInputStream fis; try { Class.forName(“com.mysql.jdbc.Driver”);//.newInstance(); connection = DriverManager.getConnection(connectionURL, “root”, … | |
What I want to do is add items to an ArrayList then print. Each item needs to either be selectable, or non selectable. The list needs to be interactable with the arrow keys. I have the list being printed out, and thats about it. Heres my source, I have no … | |
this is image of error... | |
I am working on the Add em up project in the Blue Pelican Book. I would apreciate some help on figuring out how to get it to do subtraction to get the sum of 1249. Here is my code so far: `import java.io.*;` `import java.util.*;` `public class AddEmUp `{ `public … | |
Hi all, Can anyone guide me how to create JSP page on condition. I'm trying to call two different .jsp pages in one index.html page. I tried different conditions to achieve this bt did not succesed. Kindly help me. Its urgent. | |
Hi evryone! :) I'm a complete beginner in Java and today i'm found my self stack while trying to solve a problem. Basically what i have to do is to write a program that sorts three integers. The integers are entered from the input dialogs and stored in variables num1, … | |
hello friends, we have stuck with one problem while doing program of mail api. we have doing unread mails via mail api,but its not perfectly working. There is an problem in reading content of (multipart type) of mail. it will work on Text/Plain type. Following is my code.please let me … | |
Hello i have a little problem with writing the words in the database, after some space between the words the database can't remember it, thats why because the link eg. ( /some_file.php?search=something%20wierd ) that "%20" its the space between the words but from my mobile application when ill type space … | |
<%@page import="com.image.vo.ImageDetailsVO"%> <%@page import="com.image.controller.Global"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form action="Image" id="image" method="post"> <table> <tr> <td><strong>UserId:-</strong></td> <td><input type="text" name="name"><br> <br></td> </tr> <tr> <td></td> <td><input type="submit" name="submit" value="submit" /></td> </tr> <% if … | |
I am a student, I have a program that I have been working on for about a month now. I have to hand it in on Wednesday and everything works fine but I just want to tidy up the interface. I have a JTable which I use to display records … | |
I'll include the codes to compare two .csv files and have to display only the name of the student who has got odd marks in both files (not to display who got same marks in both files) Main code package comparecsv; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import … | |
I have completed most of the code for my final assignment for my Java class but am having some difficulties getting it to compile. The requirements for the assignment are: • Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. … | |
Hello good day. Thank you for trying to help. My problem is as follows. A few columns in my table, use a JComboBox as the editor for their cells. Each cell, in a row (via JComboBox) presents the same choices to the user. The user is allowed to choose from … | |
Hello, I'm trying to program a Caesar Cipher, but I keep getting weird errors. My input is not being handled correctly. I have no idea, i've tried different variations, but it does not work, here is my code. import java.io.*; import java.util.Scanner; public class CaesarCipher { public static final int … | |
textpad 5 generated an "unexspected and unrecoverable error" with a large data file of mine and at first i though it was due to length. (1280 lines, 188kb) but there are much bigger data files involved. (5 to 6000 lines and >30000 characters in one) it gives out e dmp … | |
I want to read data from database. the data is in arabic language. the character set of my database is AL32UTF8. when i try to retrive the data i get "????" please do reply how to solve this problem this is the code public static void main(String[] args) { // … | |
I'm programming Blackjack and all is well, except after I type 'y' to hit again, the program terminates even though total is still less then 21. So my while statement is doing nothing? package com.github.geodox.blackjack; import java.util.Random; import java.util.Scanner; public class Blackjack { private static int total = 0; private … | |
I need to code a program to compare the datas in .csv file (.csv file is an excel file which will be seperated by , instead of cells by saving in.csv format). I've coded it fully and the required outout is also obtained. But i need a modified version of … | |
Hi everyone, I am working on an small inventory management application for learning about swing and i am using jTable to display the contents of MySql table i have to refresh the contents of my jTable instantly whenever i Add an new customer but i couldn't do it because i … | |
Hi all, I'm new to this site so please forgive my ignorances. I am a beginner at Java and I've been assigned to do a project about an Airline Reservation System. So the objectives required are: Reserve the ticket Cancel/Confirm Reservation Book the ticket Change / Cancel Booking Waiting List … | |
I am trying to get the highest value in my rows. I have been at this awhile trying to figure it out. I assume it is suppose to return 3 values but honestly i really suck at this. Here is what I have public static int getHighestInRow(int[][] numbers, int row) … |
The End.