35,618 Topics
![]() | |
I'm a newbie to Java, so I'm sorry if this is a silly question. I'll post the code first, then explain my problem. [CODE]import java.util.Scanner; class CharacterOperations{ public void run(){ System.out.println("1. toUpper"); System.out.println("2. toLower"); System.out.println("3. Alphabet"); System.out.println("4. Quit"); int input; Scanner sc = new Scanner(System.in); input = sc.nextInt(); while (input … | |
I'm suppose to use Command-Line Arguments to take user input and than use an enhanced for loop to sum. [COLOR="Red"]This is the error: Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from double to int[/COLOR] [CODE] public class EnhanceForLoop { public static void main(String[] args) { … | |
Hi I was looking help with a null pointer error I get everytime I use my newgame button or start the newgame method. What the game should do is guess 1-1000 then change the screen when the user's guess is too low , too high, and correct. Once the user … | |
I am following a series of programming challenges for beginners, this challenge requires interactive commandline input which is a pain in java. Therefore I've made a small class in another file to handle the user input. When I try to compile the main class ('external' class compiles without problems) I … | |
Hello DaniWeb, i`m a new member here, so greeting to you. As the topic title says i`m in bit of a problem, so a little help would be appreciated, I am as newbie as it get`s when talking about JAVA, so here it is. I`m trying to figuere out a … | |
Can't believe it has gotten to this. I cannot for the life of me figure out what is messing up my desired outcome. Here is the story: I have a small GUI program for a sports club. I have 3 list boxes, 1 for each U10's,U12's and U14 children. I … | |
Hi im having this problem, i have this danish tv website [URL="http://www.dr.dk/NU/popup/live#/DR1"]http://www.dr.dk/NU/popup/live#/DR1[/URL] thing i dont know if your guys can see it but anyways its page content is: [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>DR NU</title> <style> *{ margin:0px;padding:0px; } html,body { height:100%; background-color:#000; … | |
I was trying to build an autocomplete text box in jsp page using Jquery plugin. But i am facing problem. Whenever i was trying to display the list, it is not displaying. When i was requesting for the jsp list page from JQuery Autocomplete, System.out is working, it is giving … | |
Can you help me with this? Our instructor told us that we are going to StringTokenizer and he didn't told what is a StringTokenizer or has not been discussed. Can you add also the comments why that code is all about? Many thanks, Jerick PROG 131 – Computer Programming SPECIAL … | |
Im trying to to create a simple 4 function calculator using a jump table without switch case or if/else statements. I understand I can create the jump table via function pointers but I am kindda blanking out. I've started with the addition and subtraction part of the program but am … | |
I created a console program in jcreator (java) which asks the user to enter a number in string and converts that string value into char array and then converts each char array into an integer which I also stored each as an array and then adds all the value from … | |
This is my code. [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Registration Page</title> </head> <body background= "bg8.jpg" width="1000" height="1000" alt="work1"> <form action="clientlogin.jsp"><table> <tr> <td> Company Name</td><td> <input type="text" name="cname" value="" /></td> </tr> <tr> <td> Password </td><td><input type="password" name="pwd" value="" /></td> </tr> <tr> <td>Location of company </td><td><input type="text" name="location" value="" /></td></tr> … | |
Hi.. I'm doing my project on Text Categorization.I've got a text categorisation test collection called Reuters-21578 for my Information Retrieval project. It is distributed in 22 files. Each of the first 21 files (reut2-000.sgm through reut2-020.sgm) contains 1000 documents, while the last (reut2-021.sgm) contains 578 documents. The files are in … | |
This is a database dictionary page which has two drop-down boxes. [COLOR="Red"]first [/COLOR]- for the tables in the database(it displays all the table names in the dropdown. Second - for the columns of the table selected in the previous dropdown n then on selecting the column name it should display … | |
Hello Members, I am trying to solve the following problem using threads: Thread_1 outputs values from 1 to 1000. Thread_1 waits. Thread_2 outputs values from 1 to 1000. Thread_2 now waits. Thread_1 outputs values from 1000 to 2000. Thread_1 is done. Thread_2 outputs values from 1000 to 2000. Thread_1 exits … | |
Hello all, I have created Servelets which are used by midlets and having Database in MySQL. I have deployed servelets in Apache Folder. but now question is how to setup Database? Thanking You, Hakoo S Desai. | |
Hello, i Want to do project on Java.... any one tell me some new ideas to do my project.... some thing new i can implement as for my final year project | |
Hi All, I am suppose to develop a sdk for touchscreen desktop. it has windows 7. i am planning use java for sdk development. But request overall some help from experinced guys to how to design and develop one such sdk. Thanks | |
Hi, I currently have a method that is called on a ActionEvent of being clicked. Now I want to call that method from another method. Is there a way to do this with out having to just copy and paste my code into another method and just call that? This … | |
[code]import java.awt.*; import javax.swing.*; public class image extends JFrame{ JButton b1; ImageIcon im; Container c=getContentPane(); public image() { im=new ImageIcon("Pictures/sad.jpg"); b1=new JButton(" ",im); c.setLayout(new FlowLayout()); add(b1); setSize(500,500); show(); } public static void main(String [] args) { new image(); } }[/code] | |
i am having error in following code else condition not working(insert other user) plz fix it and reply it [code="jsp"] <% String dcolpoid = "null"; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); //182.50.131.83 182.50.131.34 String sURL = "jdbc:mysql://localhost:3306/maxcaredb2011"; String sUserName = "root"; String sPwd = "password"; Connection con1 = DriverManager.getConnection(sURL, sUserName, sPwd); out.print("connection" + … | |
Does anyone know how to use "relay-hosting.secureserver.net" to send mail using jsp code .....for godaddy............ I m having access denied error on port 25...so they suggest me to use relay-hosting.secureserver.net .........i dont know how to use it to send mail..plz tell me any thing about it and send me code … | |
i have downloaded Ireport and Jasper Report softwares. i hav created a system using netbeans installed in linux. Unfortunately, i dont know how to install ireport so that i can use it to generate reports. can somebody help me? | |
how do i add a scrollbar to my JEditorPane this is the format i have everything in. [CODE]private JEditorPane tos; tos = new JEditorPane(); tos.setEditable(false); tos.setForeground(new Color(250, 250, 250)); tos.setBackground(new Color(84, 84, 84)); tos.setText("fuuuuuuuuuuuuuuuuuuuuuuuuu bbbarrrrrrrrrrrrrrrrrrrrrrrrr"); addComponent(contentPane, tos, 500,180,210,170); [/CODE] | |
I'm working on a project that would require me to integrate PayPal into it somehow. I don't know how exactly to go about this, but I'd like the code to be in Java if possible, but really any programming language is fine. Does anyone know if I could do this … | |
Hello, i have been stuck on this for a while and is costing me alot of time. Can somebody please help me understand why in the eclipse ide under the project properties options, J2EE Module Dependencies, when i try and work with jar files placed under the file path [COLOR="Red"]\WebContent\WEB-INF\lib[/COLOR] … | |
Ok so... I have a problem with completing my code for class tomorrow. I need help with this ASAP. I'm asked to implement a program that generates a random number of jelly beans in a jar, prompt the user to make a guess on how many jelly beans are in … | |
hello all I am new to socket programming.I have to write a socket client which write hit a url on socket.socket server is already running on other site.can any one please suggest the way Url is as follows "GET /subscription/subservice.aspx?Mobileno=MOBILE&Channel=USSD&planid=13404&clientid=511&requestType=1&SubscriptionMode=USSD&isbill=1&subid=1340&shortcodeid=49 HTTP/1.0\r\n\r\n" | |
I've been creating a login system in Java. The functionality of all the programming in java has been a breeze. Though, I can't find any good comprehensive tutorials on creating a login database, which is something I have never done before. [B]Could someone please give me or link me to … |
The End.