32,199 Topics

Member Avatar for
Member Avatar for harishjoy

public int insert(Order order) throws SQLException { PreparedStatement insert = null; int orderKey = -1; try { String method = new String("DBInterface.insert( Order )"); FileLogger.log(FileLogger.HIGH, method + " - Entering..."); int col = 0; int actionCode = getCodeKey("ORDER_ACTION", order._action); int statusCode = getCodeKey("PCO_AUTO_STATUS", order._status); int falloutTypeCode = getCodeKey("FALLOUT_TYPE", order._falloutType); orderKey …

Member Avatar for JamesCherrill
0
335
Member Avatar for uurcnyldrm

How can I print a BufferedImage? I mean how can I send a BufferedImage to the printer? I heard something like printJob but I don't get it. Please help me about this. Thanks in advance.

Member Avatar for dongiulio
0
622
Member Avatar for Na'Vi

String q = new String(“Cat”); String r = q; String s = new String(r); I understand that the first line would equate to `String q = "Cat";` and the second would be `String r = q;`, but what would the last one equate to without using new? I originally thought …

Member Avatar for JamesCherrill
0
121
Member Avatar for RedSpyder

Hey guys. Im in my first week of class for Java OOP. This is what my first assignment looks like **1. Ask from the user: how many students take CompSci in summer, and store that number in a variable.** **2. Ask the user to input the name and mark of …

Member Avatar for delta_frost
0
183
Member Avatar for minnie19

What is the simplest algorithm to write in pseudocode to cipher the letters of the alphabet with different letters in the alphabet?

Member Avatar for stultuske
0
57
Member Avatar for PhilEaton

Can anybody help me out, show me where to look or a keyword or something? I'm trying to figure out how to write simple programs that can manipulate other programs. To keep it simple, and as a start, I'd like to be able to run the program to insert a …

Member Avatar for PhilEaton
0
122
Member Avatar for DEAD TERMINATOR

So I'm working on a checkers like game that involved moving two different types of pieces around the board to try and capture the opponents pieces. One of these pieces is a ball, and it's movement rules are that it can move up and down only one space per turn, …

Member Avatar for JamesCherrill
0
603
Member Avatar for godzab

I have made a simple web browswer in java. The problem is it's to simple. How would I add things like HTML5 support in my web browser?

0
107
Member Avatar for lmthuan

Hi all, I have an input text file with content bellow : ------------------------ ABC = Any Body Cus JS = Java Script Ser = Serverlet Ars = Arsenal Any Body Cus = Any Body Cus Java Script = Java Script Serverlet = Serverlet Arsenal = Arsenal ------------------------ so i want …

Member Avatar for stultuske
0
220
Member Avatar for annette_arpana3

import java.util.*; import java.net.*; import java.awt.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.plaf.*; import java.awt.event.*; import java.io.*; import snmp.*; public class SNMPInquisitor extends JFrame implements ActionListener, Runnable { JButton getDataButton, getTreewalkDataButton, getTableButton, getNextButton, setValueButton; JButton clearButton; JTextArea messagesArea; JScrollPane messagesScroll; JTextField hostIDField, communityField, OIDField, valueField; JLabel authorLabel, hostIDLabel, communityLabel, OIDLabel, valueLabel; …

Member Avatar for JamesCherrill
0
235
Member Avatar for mydreamgirl

I installed Apache Tomcat 7.0.28 in my JBuilder6. I use JDK 1.6.0_32 (jre6). I can get http://localhost:8080/ page. However, when I tried to run my JSP file, I encountered following error: FileUpload.jsp: java.lang.NoClassDefFoundError: org/apache/tools/ant/Task FileUpload.jsp: Caused by java.lang.NoClassDefFoundError: org.apache.tools.ant.Task ...12 more Could not find the main class: org.apache.jasper.jspC. Program will …

Member Avatar for firdaus_lazim
0
388
Member Avatar for gedas

Hey guys, I am creating a simple java swing app that would allow me to monitor the activity on my sites. I am using google analytics api to do most of the monitoring(breif descritpion can be found here : https://developers.google.com/analytics/devguides/reporting/core/v2/gdataJava) however this does not show how to incorporate the new …

Member Avatar for gholtean
0
89
Member Avatar for writerervin

I apolagize if this question has been asked before, but I was looking to see how I would go about writing an editor that saves the file on a server instead of on the harddrive. I would appreciate any and all help.

Member Avatar for trishtren
0
169
Member Avatar for hkboateng

Hello Guys, I am writing an elevator problem and am stuck at the movement of the elevator and also stopping the elevator. The elevator is suppose to state the current floor is starting and the number of passengers that are in the elevator. I am able to let it go …

Member Avatar for hkboateng
0
578
Member Avatar for Verandaguy

[CODE]I'm currently redesigning my website in Dreamweaver CS5. My site was previously made in iWeb, which centered the page automatically in any browser at any resolution. When I preview my site in Safari using Dreamweaver, the whole page seems aligned left. Another issue (which I should probably also post in …

Member Avatar for Kratos-s-
0
311
Member Avatar for messynaddy

public class Stack extends LinkList{ public Stack(){ public void push (Object element) { insertAtFront (element); } public Object pop(){ return removeFromFront(); } public Object peek(){ return getFirst(); } } Im trying to create a movieApp using pop push and peek method(Stack). But once the class got compiled, it shows a …

Member Avatar for messynaddy
0
281
Member Avatar for karoke

CAN anyone help me in knowing the differences between J2EE, J2SE & J2ME... I am a newbie to Java. Please explain me in detail. Thankz in Advance !!!

Member Avatar for JamesCherrill
0
5K
Member Avatar for ubi_ct83

hi guys, i really need help on this problem. i have a code, but i need to convert it to algorithm.but i dont know how since im still new in this programming matter. hope u guys can help me please.... thanks for advance. public static void calculateTotalTupples(int p, int s, …

0
59
Member Avatar for mrgadgets

Do you people think slick2d is the best framework ever? I have tried it and now I am really enjoy using it to develop my next game in java.

0
88
Member Avatar for deshazer.jad

I'm trying to load a PNG file into a BufferedImage like so: BufferedImage image = ImageIO.read(new File("smile.png")); When I use this line of code alone, it produes the error: Unhandled Exception Type IOException... I can fix this by surrounding the statement with try/catch like so: BufferedImage image = null; try …

Member Avatar for deshazer.jad
0
834
Member Avatar for abbafan

I've got this thing that has kept me puzzling for a few days now. I've created an array of 30 integers, randomly chosen. I would like to add the integers randomly to a two-dimensional array of 12 x 12 integers. The remaining elements in the two-dimensional array should keep their …

Member Avatar for Rashakil Fol
0
227
Member Avatar for mrgadgets

I am looking forward to develop game in java and might sell it as well so here is the question: Do we need to pay fee to Oracle if we sell our game on the market or host it on our own web site with advertisement on the game page? …

Member Avatar for stultuske
0
244
Member Avatar for bipi09

i have this code in main.jsp <html> <head> <link rel="stylesheet" href="/bipi/css/bp.css" type="text/css" media="screen"/> </head> <body> <div class="navigator"> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Add</a> <a href="/bipi/display.jsp">Delete</a> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Main</a> </div> <%--<% String fname = request.getParameter("f_name"); String fage = request.getParameter("f_age"); if (fname != null && fage != null ) { com.test.gerrard.Insert(fname, fage); } %>--%> <form …

Member Avatar for anand01
0
983
Member Avatar for Valiantangel

hi my complier showing me that i am having 4 errors.In **t1.drawHexagon(int width)**; & **t1.drawPentagon( int width )**.Its says .class and ";" expected. Help. Thank you import java.util.*; import java.awt.*; public class Turtle extends SimpleTurtle { public Turtle (int x, int y, Picture picture) { super(x,y,picture); } public Turtle (int …

Member Avatar for corby
0
134
Member Avatar for Viped

Hi, I am trying to make simple gui which switches jpanel inside jframe but my IDE says "Cannot make static reference to non static method setPage(int) from the type Main". Why is that? There is no static modifier on actionPerformed or at setPage or actually anywhere else than public static …

Member Avatar for JamesCherrill
0
165
Member Avatar for sem123

Hello Friend I want to make SoftPhone in java as well as androied so please any help regarding it if you havae any website please link .

0
60
Member Avatar for viktor.baert

Hello, I'm trying to make a very basic + - calculator in java using constructors after watching thenewboston video tutorial I tried to experiment with it. My litle project is almost finished my only problem is that the boolean I use is being reset after I assign it. If someone …

Member Avatar for viktor.baert
0
936
Member Avatar for trishtren

Hey, I have a need to define a new type such as int,short etc. I have the class with all the base methods it must perform somewhat equivelant but different from the Integer class, Short class etc. However im not sure whether this is an interface i need to define. …

Member Avatar for sepp2k
0
133
Member Avatar for speakon

Hello! I am very new to Java and programming theory and desperately trying to improve my knowledge. This is the first program I've made without help and really would appreciate some feedback. I know there must be 1,000,000 better ways to do what I did. Notes: - Want to Move …

Member Avatar for speakon
0
1K
Member Avatar for iEpic

Im having a lot of trouble trying to figure out something that seems like it would be easy. For my final project I have to create a GUI application. I got it set up and working where when you click the button it will display some text depending on what …

Member Avatar for trishtren
0
168

The End.