32,204 Topics
| |
Hi guys well my code is below I am trying to set up error checking so that CREATETABLE will only execute when String v and string d are false and when string t is true. I've started the code. Which it works when String v or String d are null … | |
Hi! I use scanners delimiter. The next() function for scanner should return me the string by these punctuators: | . : space But i don't know what to write inside scanner.useDelimiter("") parameter? For example for this string "abc.123,zqw ttt|AAA", scanner.next() should return abc scanner.next() should return 123 scanner.next() should return … | |
can you please tell me what is make and what is use of it Can you also tell me what is meaning of a given statement "Apache Ant is a Java-based build tool. In theory, it is kind of like make, without [B]make's wrinkles"[/B] | |
hi i want to display column in jtable but the columns enter each other and reduce the size of the columns so how i can when i display larger number of columns apper with each column has itis own space | |
Hi, I want my output to show to two decimals.If the output is $6.075,instead of bring it to $6.08,i prefer it showed $6.07.How am i able to do this? I used the below System.Out but kept getting $6.08. [ICODE]System.out.printf("%s%.2f\n","State Withholding(9.0%):$",stateWithholding);[/ICODE] Thank You :) | |
Ok so I've started learning Java and am half way the book 'Head First Java' (which isn't a bad book btw); but what they've failed to mention is when you know when you need to make a new class. I've learnt that each Class is for each object but how … | |
Hello and again this doubt has to be explained to my ten year old. It's about JWS (Java Web Start). Could you please explain the red-circled stuff in an easy way ( for my ten year old )? He has no ( no! (or) zero (or) 0 ) knowledge about … | |
I've tried using the javac command inside the command prompt but it says "javac not recognized as an internal or external command". the java command works perfectly fine. On the other hand, I can compile stuff using the Textpad program. Anyone know why this might be happening? Version of Java … | |
I need help, The array in Class Loto generates 6 random numbers and print them out. the Class Lotto askes the user to input 6 numbers which are stored in an array. i need code to compare the two arrays and see if they equal each other, and if they … | |
I try to develop a rails web search engine that aims to use carrot 2 clustering rest service that is also work on my computer. However to use these two I need to deploy both of them to same server. Do you know any hosting that makes available to run … | |
Hi Guys! I nee d your help! I created a java program and build it and already have my jar file. What I want to know is how can I have an autorun file where the jar file automatically run. I already used this line of codes. [CODE] [autorun] open=myjava.jar … | |
My Java teacher hasn't been very clear, and i'm kind of flying solo here. He gave us this project, and one part of the project is throwing up a JOptionPane which allows the user to input a number which correlates to a specific car. For example [QUOTE]Choose a vehicle that … | |
I need the program to end the loop after player1 has won but the program continues to run until the loop is done i was wondering i know i need a break statement but i do not know where to put statement at.Any help is appreciated. import javax.swing.JOptionPane; public class … | |
please tell me how to convert an integer type to a String. if possible, give some code? | |
please give some piece of code that will make me understand that how to pass an array to a method/function? | |
Since i am new to java, so please tell me that is there any way by which i can convert integer array to primitive int?? if yes, give some code. | |
i need to return the ASCII value of the argument passed in the StringtoIntfunc(). But i am not getting the real ASCII values and i think the problem is with the return statements? please help. public class StringIntfc { public int[] StringtoIntfunc(String s) { int j =0; int k[] = … | |
If user enter all these then i need to use what to store it in a same group (many different group) [code]import java.util.Scanner; class addBook { public static void book() { int isbn; Scanner inputDevice = new Scanner (System.in); System.out.println("Enter ISBN ...\n"); isbn = inputDevice.nextInt(); int title; System.out.println("Enter TITLE ...\n"); … | |
hi can you help me to modify this program to make it an isoceles or equilateral triangle? right now am having a right angle triangle! [CODE]import java.awt.*; import java.awt.event.*; import java.awt.geom.*; public class Triangle extends Frame { Line2D line1 = new Line2D.Double(50,150,150,150); Line2D line2 = new Line2D.Double(50,50,150,150); Line2D line3 = … | |
Hi guys I am able to drop my tables that I want but however when I come to trying to drop rows the rows do not delete. I have tried the following which have all produced the same error duplicate key TABLENAME : Any help you can give for a … | |
I'm having problems adding a JPanel, which has a paintComponent in it, to a JFrame. If this is the only thing I add to the frame, it works. But as soon as I add a layout manager and add other components to the JFrame, it no longer shows the panel … | |
hi everybody, i needed to play mp3 audio in my AudioPlayer project i found jlayer is the easiest way to play mp3 audio,it plays well but can't stop playing my GUI stops responding until the audio is finished! any help please this is the code of the playing button -chooser … | |
I need to write a program to find the first 10 prime numbers, i.e. integers that are only evenly divisible by themselves and 1. The hint I got was to make a big array of booleans named "isprime" and mark off all the non-prime numbers as false, i.e. isprime[4] = … | |
Hi all, i have a task which is create an algorithm from a java code.and i need help from u guys to check on my algo put a comment on what should i change or why it is wrong. I really appreciate if u could help me on this matter... … | |
[URL="http://i.imgur.com/iwNHY.jpg"]http://i.imgur.com/iwNHY.jpg[/URL] i already set a path for jdk and etc, it worked before but now it doesnt work the code works on ecclipse so the code is correct but i have to learn how to compile using command prompt check out this image i get this same error i do … | |
Hi all, this is a homework assignment that I'm not sure how to begin with. We are given all the code and I just need to finish a function to convert digits to words. For example, the string "1, 2, and 3." becomes "One, Two, and Three." The String "10" … | |
Hello everyone, This is my first post in here :) Need a help with v. simple exercise. I need to ask user to input 10 objects of type Product (String name, Double price). I manage to done this. What i need to do now is to validate this inputs! I … | |
Hi guys I have successfully set up my database which through my GUI I am able to create my tables that i wish and insert data into the table. My problem is through that I can only insert one row of data into a table so what would I need … | |
| Hey, totally new to Java. How would i go about compiling .class or .jad files into .jar? What software do i require too? Thanks in advance |
hello how do you get three strings in to a boolean. Number 1 is greater than the number 2, which in turn is greater than third Number 1 is greater than one of the numbers 2 and 3, but not greater than both Number 1 is greater than at least … |
The End.