169 Posted Topics

Member Avatar for robin_dW
Member Avatar for khaled_jawaher
Member Avatar for khaled_jawaher
-1
1K
Member Avatar for Abinaya Infy
Member Avatar for QuikSilver75
Member Avatar for doom2100

1. You need to create 3 int, high, mid, low (or any name you want). 2. Then compare A and B If A > B high = A low = B Else high = B low = A EndIf 3. Then compare C with hig and low. If C > …

Member Avatar for doom2100
0
136
Member Avatar for dolphinaura
Member Avatar for lisa123636
0
75
Member Avatar for comsian420
Member Avatar for Eric Cute

Hello to all. First of all, I would like to say that Im jst a newbie to ASP.NET development and Im just trying to explore the VWD IDE. So here's what happened: 1. Tried to add SQL DATABASE under App_Data Folder. (good) 2. Tried to add table. Created table definition. …

0
84
Member Avatar for fabricetoussain

As slimmy has pointed, your constructor takes two arguments [CODE] public Product(String n, double p) { n = "toaster"; p = 29.95; }[/CODE] It is advisable that if you overload a constructor (in this instance the NEW constructor) you create a default constructor that accepts no arguments. maybe you can …

Member Avatar for Eric Cute
0
643
Member Avatar for Phil++

I havent tried your code yet but first look I noticed line 11 in your main [CODE] Customer customers[] = new Customer[500];[/CODE] try this. [CODE] Customer[] customers = new Customer[500];[/CODE] this will create a customer array.

Member Avatar for masijade
0
89
Member Avatar for cempaka123
Member Avatar for arvindikchari

Maybe you want to put all your prefilled values inside a file then before loading your screen, read that file and put the read values into your form elements.

Member Avatar for Eric Cute
0
94
Member Avatar for ITjulz
Member Avatar for Aeonn
Member Avatar for adr1817

First, please put your codes inside the CODES tag. Based on my understanding, 1. You will ask user what type of loan they want to look at. 2. You will show the loan computation if choice is 1 - 4. 3. If invalid choice, you will display invalid choice message. …

Member Avatar for Eric Cute
0
246
Member Avatar for coding101
Member Avatar for ITjulz

First try google (",). But here it is. [CODE] String time = JOptionPane.showInputDialog(null, " Please Input Time ", "Phone Call", 1); [/CODE]

Member Avatar for Eric Cute
0
58
Member Avatar for Eric Cute
Member Avatar for musikluver4

When your submit button in frame1 is clocked, do [CODE] frame1.setVisible(false); frame2.setVisible(true); [/CODE] In frame2, when BACK button is clicked, [CODE] frame2.setVisible(false); frame1.setVisible(true); [/CODE] Hope this helps.

Member Avatar for musikluver4
0
5K
Member Avatar for erum

try: [CODE]Dim hotel_book As String = "insert into hotelbooking (Userid, hotel_requirement_Types, singleroom, single_no_room,doubleroom,double_no_room) " & _"VALUES (" & userid & ", '" & ckchecked.Text & "' ," & singlecheck & "," & no_single_room & "," & doublecheck & "," &no_double_room & " )"[/CODE]

Member Avatar for kvprajapati
0
94
Member Avatar for maxamillian

If bottom = 5, expected output is '*****'. [CODE] String val = ""; for (int star = 0; star < bottom; start++) { val = val + "*"; } System.out.println(val); [/CODE]

Member Avatar for jon.kiparsky
0
82
Member Avatar for Sunshineserene

masijade's suggestion of arrays.Sort() is the easiest. largest number will be at array[array.length - 1].

Member Avatar for Sunshineserene
0
315
Member Avatar for Junzification

Are you allowed to use arrays?? If so then arranging the numbers from lowest to highest will just be [CODE]Arrays.sort(arrayName);[/CODE] then doing a for loop from the end of the arrays and outputting the values will give you your expected result.

Member Avatar for Eric Cute
0
162
Member Avatar for iammet

Please put your codes inside the CODES tag. And please ask specific question. What do you want to do exactly??

Member Avatar for masijade
0
176
Member Avatar for javaking33

[CODE][/CODE]notuserfirendly's suggestion of using vector is very good. Vectors will handle the resizing of your array because vectors are dynamic. To create a vector, [CODE] vectorName = new Vector(5, 3);[/CODE] then to convert that vector into an array, [CODE] arrayName = new String[vectorName.size()]; vectorName.copyInto(arrayName); [/CODE]

Member Avatar for jon.kiparsky
0
188
Member Avatar for kandyhyatt

In your MegaBallTest.java, n1 is NOT double, it is a MEGABALL. So you cannot compare it to 0 or 56.

Member Avatar for Eric Cute
0
125
Member Avatar for Slyvr

maybe you want to explore setBounds(). This will put your elements to where you want them to be.

Member Avatar for Eric Cute
0
180
Member Avatar for john410
Member Avatar for Eric Cute
0
110
Member Avatar for Lxyslckr

What is th problem in the class public String allSpeak()? Note: In your method allSpeak, you declare it as public String so the program is assuming that somewhere in your method you WILL RETURN a String.

Member Avatar for Eric Cute
0
132
Member Avatar for ejsuarez

Can you post the 10% you hav done so far. And we will not write it for you. We will you you write it on your own.

Member Avatar for ejsuarez
0
112
Member Avatar for Zemfik

on solving crossword puzzles and playing sudoku with their on pet ducks.

Member Avatar for Kraai
0
235
Member Avatar for Eric Cute

Hello to all (",) Basically, I have a JSP page. What I want is to determine the screen resolution of the client machine that is viewing my JSP page. I tried using a JavaBean to do this but Im not getting the results I wanted. So I use JS. My …

Member Avatar for Shanti C
0
29K
Member Avatar for krip_101

Can you please state some specific examples on what you really want to do.

Member Avatar for krip_101
-2
198
Member Avatar for agons

What is the 'longest run'?? And if you roll a single die, the max die value you cant get is 6. Im a little bit confused.

Member Avatar for polk230
0
2K
Member Avatar for sariberri
Member Avatar for shane1987

[CODE]zeroStr = "000" //string with 3 zeroes. int r = String.valueOf(array[i]).length(); // get the length of element i if (r < 3) { // for digits less than 3 String temp = zeroStr.substring(0, 3 - r) + String.valueOf(array[i]); // concat the zeroes together with the digit System.out.println(temp); } [/CODE] In …

Member Avatar for lee.j.baxter
-1
5K
Member Avatar for Eric Cute

Hi guyz. I know this is a simple one but Im a bit confused in doing this. Basically, I want to get the Screen Resoultion of the client machine using my JSP. I have this code in my Bean. [CODE] Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); return screenSize.getWidth(); [/CODE] Problem is it …

Member Avatar for Eric Cute
0
307
Member Avatar for Rally VW

in what part are you processing the grades?? I see that you have a processGrade method but you are not calling it anywhere..

Member Avatar for Eric Cute
0
201
Member Avatar for rama83
Member Avatar for rama83
0
129
Member Avatar for jwill222

jwill, for the multiplication and divison you can do a for loop. 1. For multiplication, notice that; 2 * 2 = 2 + 2 3 * 4 = 3 + 3 + 3 + 3 Notice that you need to add factor 1 factor 2 times. you can do a …

Member Avatar for jwill222
0
163
Member Avatar for edwardlee2708
Member Avatar for dddundalk

Welcome to DaniWeb (",) I also have a hard time switching from COBOL to OOP. The people here in DaniWeb makes it easier for us to switch. Enjoy (",)

Member Avatar for WASDted
0
122
Member Avatar for Eric Cute

Can anyone pls suggest if there exist a java IDE that has drag and drop functionality in creating GUI's?? Much like the VB.NEt IDE's. Thanks (",)

Member Avatar for RushabhShah1110
0
176
Member Avatar for sirlink99

Try storing your variable as a String. So that when user enters 5 your variable = "5". Then after user enters 2 you do [CODE] var = var + input;[/CODE] which will concatenate 5 and 2 to make "52". Then before you do your computation, you need to cast this …

Member Avatar for coil
0
198
Member Avatar for jFincan

Did you get the first two?? (asdasdasdas & bdfg...) If yes, then how?? Pls post your code here.

Member Avatar for Taywin
0
103
Member Avatar for orkuncanbay

Try to google "Java Quiz". Maybe you can find something. Or better yet, write your own quiz program.

Member Avatar for Eric Cute
-1
71
Member Avatar for Sunshineserene

Yes, because an array is a fixed size List while an ArrayList is dynamic (it can grow in size). As Taywin has posted, you need to set the boundaries of an array before you can use it or add elements to it. So the limitation is that you need to …

Member Avatar for Sunshineserene
0
2K
Member Avatar for MeandJava

I think this line will get the last value of keuzes inside your game [CODE] while (keuzes == 'y' | keuzes == 'n'){ keuzes = (char) System.in.read(); } [/CODE] so why not, ask for the user first so that keuzes will be initialized to the letter the user inputted before …

Member Avatar for leiger
0
7K
Member Avatar for Guna16
Member Avatar for RBK_RBK

What sort of error are you getting?? As for me, im reading text files using Strings. Then I manipulate these Strings into whatever I want. Its just my suggestion.

Member Avatar for jon.kiparsky
0
98

The End.