32,204 Topics

Member Avatar for
Member Avatar for TIM_M_91

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 …

Member Avatar for TIM_M_91
0
237
Member Avatar for servet

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 …

Member Avatar for JamesCherrill
0
122
Member Avatar for bhallarahul

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]

Member Avatar for ~s.o.s~
0
150
Member Avatar for lena1990

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

Member Avatar for mKorbel
0
74
Member Avatar for Valiantangel

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 :)

Member Avatar for hfx642
0
102
Member Avatar for BlackStar0703

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 …

Member Avatar for BlackStar0703
0
503
Member Avatar for jackbauer24

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 …

Member Avatar for jackbauer24
0
136
Member Avatar for gzero14

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 …

Member Avatar for zeroliken
0
623
Member Avatar for itsmrshow

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 …

Member Avatar for zeroliken
0
217
Member Avatar for erogol

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 …

0
132
Member Avatar for marsangel

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 …

Member Avatar for DavidKroukamp
0
1K
Member Avatar for AMeddaugh

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 …

Member Avatar for AMeddaugh
0
148
Member Avatar for dsmith12

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 …

Member Avatar for DavidKroukamp
0
194
Member Avatar for adil_bashir

please tell me how to convert an integer type to a String. if possible, give some code?

Member Avatar for stultuske
0
168
Member Avatar for adil_bashir

please give some piece of code that will make me understand that how to pass an array to a method/function?

Member Avatar for adil_bashir
0
180
Member Avatar for adil_bashir

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.

Member Avatar for adil_bashir
0
252
Member Avatar for adil_bashir

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[] = …

Member Avatar for DavidKroukamp
0
126
Member Avatar for lalaZai

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"); …

Member Avatar for stultuske
0
112
Member Avatar for techyworld

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 = …

Member Avatar for zeroliken
0
986
Member Avatar for TIM_M_91

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 …

Member Avatar for TIM_M_91
0
136
Member Avatar for phy2sma

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 …

Member Avatar for JamesCherrill
0
230
Member Avatar for ringo_tech

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 …

Member Avatar for ringo_tech
0
1K
Member Avatar for konman795

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] = …

Member Avatar for JamesCherrill
0
770
Member Avatar for ubi_ct83

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... …

Member Avatar for ubi_ct83
0
153
Member Avatar for ilovejava

[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 …

Member Avatar for NormR1
0
297
Member Avatar for konman795

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" …

Member Avatar for konman795
0
350
Member Avatar for jakubee

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 …

Member Avatar for DavidKroukamp
0
5K
Member Avatar for TIM_M_91

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 …

Member Avatar for richieking
0
101
Member Avatar for gowans07

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

Member Avatar for DavidKroukamp
0
96
Member Avatar for Sanna.1

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 …

Member Avatar for Ezzaral
0
122

The End.