- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 13
- Posts with Upvotes
- 13
- Upvoting Members
- 10
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
More likely not as good programmer as you are!
- Interests
- Unknown
- PC Specs
- Intel Core 2 Quad, 2GB RAM, 1 GB NVIDIA GeForce 9400 GT, 750GB HDD
41 Posted Topics
Re: I would suggest to put your if statement in line 14 of your code to one of your Vehicle method. That way, the String argument in your method will make sense. Example: public static double Vehicle(String strVehicle){ double rate = 0; if(strVehicle.equals("Jeep")){ rate = 8.00; } else if (strVehicle.equals("Taxi"){ rate … | |
Hi experts, I just want to ask if it is possible to add images/videos when creating page in websphere portal 7? Tried searching but no luck. thanks in advance. ![]() | |
Re: Everything in your code is wrong. Your declaration of int[] array in line 4 is wrong. it should be int[] SearchSource = new int[6] also you can't make an int[] array to contain data with float data types. It won't compile. If you want an array with float data types … | |
Re: Hi. This thread is already dead, it's 2 years old and has been solved! Maybe you would want to start a new discussion. | |
Re: maybe you should check first the string's length before using the substring method to avoid the OutOfBounds exception. :) | |
Re: have you tried public static void createEmpID() { JOptionPane.showMessageDialog(null,MyString.createEmpID(lastName)); } ? | |
Re: I don't get it. You add "-" to text and then you want to delete it? Anyways, you could try using String's replace function. | |
Hi All. I just want to ask how are reputation points acquired or given? Is it automatic? or is it given by fellow community members? I just can't figure it out. Thank you. :) | |
Re: maybe your 'myList' variable is not initialized properly? | |
Re: In your inner loop you should check whether the number of 1's you have is equal to the entered value. If not, continue changing 0's to 1's, if equal already, don't change the remaining 0's anymore. | |
Re: Head First Java - O'Reily Media | |
Re: In the first two samples, you can add anything because the type that your list contains is a super class List<Animal>. All your classes that extends your Animal class can be added to your list since they are all considered as Animal. On the otherhand(3rd example) you can't add an … | |
Re: what do you mean by output window? | |
Re: I think there's no SqlDataAdapter constructor like SqlDataAdapter(SqlCommand, SqlConnection). Maybe it should be like Dim sql as String = "Select * from table1" Dim dataadapter As New SqlDataAdapter(sql, connection) | |
Re: Hi Sir, when I'm training with my present company today, We're asked to develop a simple Online shopping cart. I would suggest you try to develope something like that using JSP, Struts, Spring, and Hibernate(if you are already have a knowledge of this one). Hope this gives you an idea. | |
Re: field1 and field2 should be the name of the columns in your table | |
Re: It's easy to find something like that on google. Try this article: [Windows 7 Vs. Windows 8: What's the difference](http://www.pcworld.idg.com.au/article/430154/windows_7_vs_windows_8_what_difference_/) :P | |
Re: Maybe you could post the error message that you are getting for us to help you, since we can't find any mistake in the that you've given. | |
Re: Can you post the full error message that you are getting? | |
Re: Hi. You can continue with what you're doing using the Integer.parseInt(). You can try parsing each of the user's input. If it throws an exception, then you can consider it as String. You may consider something like: try { Integer.parseInt(input); } catch (Exception e) { System.out.println("It's a string!") } | |
Re: Hi Sir. Based on your screenshots, it seems that you are using VB.net in developing your application. This is a Vb 4/5/6 forum. :) Anyways, I think you shoul decide first what are you going to use (VB6 or VB.net). Is my understanding is correct, that you are using text … | |
Re: I suggest to put it to the same variable. phrase = phrase.replace('a', '@'); | |
Re: Hi. You could try using something like bubble sort in sorting your integer array. | |
Re: Have you tried the add() method of the JPanel? example: In the default constructor you may put something like this: sc = new JScrollPane(); //define some properties of the JScrollPane //now add the JScrollPane sc to the Shelf class add(sc) | |
Re: maybe you could put the result of your calculations for each class in an array then when all the calculations for eahc class is done, get the GPA by looping through the array | |
Re: Try this: [CODE] import java.util.Scanner; public class Fibonacci { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Enter no. of term: "); int n = scanner.nextInt(); int prevNo = 0; int no = 1; int fibo = 0; for(int i = 1; i<=n; i++){ fibo = prevNo … | |
hello.. just want to ask if it's possible to save html form field values in an xml file without using any server side script like ajax or php. i just want to use javascript and i want to do it offline witthout using any server like tomcat. is it possible? … | |
Re: try this code. its result is correct for 10 i dont know for other nos.. [CODE] public class Prime { public static void primeNo(int x){ for (int i = 1; i <= x; i++){ int ctr = 0; for(int y = 1; y<=i; y++){ if(i%y == 0){ ctr++; } } … | |
Re: just set the timer interval property to 10000 for 10secs or 5000 for 5secs and make sure that Enabled property is set to true. [CODE] Private Sub Timer1_Timer() Unload Me End Sub [/CODE] | |
Re: i don't know how to read .dat file but java.util.Scanner is used to read .txt files. Just for an idea | |
Re: maybe you could use a boolean variable to know if the form is already open.. example you declare boolean formVisible, when a button is clicked you could check if formVisible is true, if true, do nothing if false open the form. now when you close the form you should set … | |
Re: try this. but i think your code is correct except you should replace bool by boolena.[CODE]public boolean equals(int x, int y){ return (x == y); }[/CODE] | |
Re: Where's your declaration of the box variable? | |
Re: try using [CODE]String.replaceAll(regex, replacement)[/CODE] by this you can replace all strings except the one that you want to count then get the length of the string remaining | |
Re: 1st error - semicolon after your IOException in you main method declaration 2nd error - i think it's in here [CODE]public static input in = new input()[/CODE] maybe you need to import the class where input type is located. by the way what are you trying to do? get input … | |
hi experts.. I'm new to javascript/ajax and i need to upload a picture to a server then the server will send a preview without redreshing the page..how can i do that? any suggestion? or sites for tutorials? thanks for help.. i need this ASAP.. | |
..REALLY NEED HELP... me and my thesis group is wanting to make an alarm that can be connected trough the usb port..the question is, how can we send data to the usb to make the alarm ring ang stop ringing.. we need it in vb.net...needed it badly..asap..help will greatly be … | |
Hi...Is it possible to get a list of running application in a remote pc through wireless or wired network?? i tried this code but i get an error [CODE]Dim ps As System.Diagnostics.Process For Each ps In System.Diagnostics.Process.GetProcesses(remote_pc_name) ListBox1.Items.Add(ps.ToString) Next[/CODE] error is "Can't connect to remote machine", i tried to access … | |
hey..i'm developing an application..something like a custom desktop..now what i want to do is to disable alt-tab, ctrl-alt-del etc . i tried to set the registry value of "CoolSwitch" to disable alt tab, but i get an error..i think i need to run my application as admin to write in … | |
hey, i'm new here..need help is it possible to save your work from other applications (e.g. word, excel, photoshop etc.) using vb6?? thanks.. this is for our thesis.. ASAP |
The End.