[Solved] Having problems creating main method [closed]

Answering the question in your comment, there are two things that you can do: 1.Call the methods at the end of your constructor. When the methods are called, the program statements contained in them will execute. public Weather(int date) throws FileNotFoundException, IOException { // code here lowest(/*char array variable goes here*/); highest(/*char array variable goes … Read more

[Solved] Hi, I am a newbie in this Javascript. I just wanna ask on how to validate input from a form. Can you check up on my code? [closed]

Problem is here if ( ver_date.test(z) ){ alert (“Input the right date format”); //you have used alert (“Input the right date format”) add the semicolem return false; also change onsubmit=”return validateForm()” to onsubmit=”return validateForm();” Updated add var ver_num = ‘/^ \d{4}-\d{4}-\d{4}-\d{4}$/’; var ver_date=”/^([0-9]){2}(\/)([0-9]){4}$/”; 3 solved Hi, I am a newbie in this Javascript. I just … Read more

[Solved] How will it be fixed so that it can catch mentioned URL formats? [closed]

What I can notice, you expect the pattern to catch the website with or without http/https – this is not included in your expression. What is more, I am not sure what the purpose of \(* is – ((((((https://some.url.com will also be caught. Is https://½½½½½½½½½½½½ a valid url? It will be accepted. What about http://= … Read more

[Solved] Segmentation Error in character array

First remove & from scanf.Like scanf(“%s”, a); char a[10] allocates the array on the stack for 10 char only. now when you enter characters as soon as you get out of bounds you are overwriting other useful things like the stack frame of the scanf call. This out-of-bounds behavior is undefined by the C standard, … Read more

[Solved] how to add row in other table? [closed]

<!DOCTYPE html> <html> <head> <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script> <script> $(document).ready(function(){ $(“.button”).click(function(){ $(‘.child-table tr:last’).after(‘<tr></tr>’); }); }); </script> </head> <body> <table> <tr> <td><input class=”button” type=”button” value=”add”/></td> <td> <table class=”child-table”> <tr><td></td></tr> </table> </td> </tr> </table> </body> </html> 4 solved how to add row in other table? [closed]

[Solved] dont show hide post which user had hide that post

Use it this way: SELECT * FROM `user_post` WHERE `id` NOT IN ( SELECT `post_id` FROM `hide_post` WHERE `user_id` = ‘{$userID}’ AND `status` = ‘hide’ ) Here the {$userID} should be the current logged in User’s ID. 7 solved dont show hide post which user had hide that post

[Solved] Parameter pass method two method in java

I guess you want to construct your query depending on the selected JCheckBoxes. The below code snippet works, if: You created a JCheckBox[] checkBoxes field that contains all the checkboxes with languages. The text of all those JCheckBox is exactly the String that should be placed inside the ‘. public void search() { // join … Read more

[Solved] How do I store values from textbox in C#

This is just a simple working example based on the code you provided, but probably there are better ways to accomplish what you are trying to do: private void button1_Click(object sender, EventArgs e) { string name = this.txtName.Text; string occupation = this.txtOccupation.Text; string dob = this.txtDob.Text; string nic = this.txtNic.Text; double id = double.Parse(this.lblID.Text); // … Read more

[Solved] How does Python iterate over a string? [duplicate]

The easiest way for me to think about this is to remember that the word ‘letter’ could easily be replaced with anything you want to call it, it’s just a placeholder. To illustrate, let’s replace ‘letter’ in your loop with the name ‘Dave’. for Dave in ‘Python’: print ‘Current letter : ‘, Dave There is … Read more

[Solved] Pointer variable of a linked list: difference between the variable, reference to the variable, and pointer to the variable [closed]

No! You’re talking some mix-up of C and C++. This is C code. C does not have references. The & operator can be applied to objects in order to retrieve their address in memory, yielding a pointer, in both C and C++. It ain’t got nothing to do with references. Even in C++. In C++, … Read more