169 Posted Topics
Re: line 9 [CODE]<%my.print()%;>[/CODE] change to [CODE]<%my.print();%>[/CODE] | |
Re: 1. I think you need to redirect that jsp page to itself. 2. What window?? | |
Re: 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 > … | |
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. … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. … | |
Re: First try google (",). But here it is. [CODE] String time = JOptionPane.showInputDialog(null, " Please Input Time ", "Phone Call", 1); [/CODE] | |
Can i run my asp.net pages in AIX?? If so, how?? Thanks. | |
Re: 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. | |
Re: 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] | |
Re: If bottom = 5, expected output is '*****'. [CODE] String val = ""; for (int star = 0; star < bottom; start++) { val = val + "*"; } System.out.println(val); [/CODE] | |
Re: masijade's suggestion of arrays.Sort() is the easiest. largest number will be at array[array.length - 1]. | |
Re: 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. | |
Re: Please put your codes inside the CODES tag. And please ask specific question. What do you want to do exactly?? | |
Re: [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] | |
Re: In your MegaBallTest.java, n1 is NOT double, it is a MEGABALL. So you cannot compare it to 0 or 56. | |
Re: maybe you want to explore setBounds(). This will put your elements to where you want them to be. | |
Re: Try casting your int to String before doing a setText(). | |
Re: 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. | |
Re: 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. | |
Re: on solving crossword puzzles and playing sudoku with their on pet ducks. | |
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 … | |
Re: Can you please state some specific examples on what you really want to do. | |
Re: 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. | |
Re: [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 … | |
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 … | |
Re: in what part are you processing the grades?? I see that you have a processGrade method but you are not calling it anywhere.. | |
Re: As apines just said, try implementing his suggestion in your code. | |
Re: 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 … | |
Re: 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 (",) | |
Re: 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 … ![]() | |
Re: Did you get the first two?? (asdasdasdas & bdfg...) If yes, then how?? Pls post your code here. | |
Re: Try to google "Java Quiz". Maybe you can find something. Or better yet, write your own quiz program. | |
Re: 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 … | |
Re: 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 … | |
Re: Downloading software from where?? | |
Re: 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. |
The End.