[Solved] Subtracting no of days with system date and converting to MMDDYYYY format in perl [closed]

[ad_1] I was close to closing this question as you didn’t include your workings. But I’ve seen your comment – you should edit your question to include that. So here’s your code: use POSIX ‘strftime’; print strftime “%Y_%m_%d_%H_%M_%S/n”, localtime() – 24 * 60 * 60); That’s pretty close. You have three small issues. You have … Read more

[Solved] Fitlering words

[ad_1] You had the right idea with int e = 0 in your earlier comment. for (int i=0; i<towns.length; i++){ if(!towns[i].contains(“p”)){ int e=0; for (int j=0; j<towns[i].length; j++){ if(towns[i].charAt(j) == ‘e’ || towns[i].charAt(j) == ‘E’){ e++; } } if(e>1 && e<5){//This is assuming you don’t want to print cities with more than 4 E’s System.out.println(towns[i]); … Read more

[Solved] Dots in printf in C++

[ad_1] If you are puzzled about the dots here is what they are: %.1lf is the format specification for precision. This is requesting one digit after the decimal point in the printf output. The 1. and 2. in (a*1.+b)/2. mean that those literals are double (as opposed to 1 that would be int and 1.f … Read more

[Solved] Query SyntaxError [closed]

[ad_1] Either use single quotes, like q = “select tbuc.csId, tbuc.uId, tbuc.cId, tbui.role_type, tbuc.time as login_date” + “, tbuc.sessId, (case when tbui.role_type=”ROLE_USER” then 1 else 0 end) ” + “as assignment_submitted FROM tb_user_click tbuc, tb_user_info tbui WHERE ” + “tbui.user_id = tbuc.uId and tbuc.csId = tbui.class_section_id;” Or escape the double quotes, like q = “select … Read more

[Solved] Java, method not applicable for arguments

[ad_1] change method declaration to private static void mysecondclass(String string, String string2, String string3){ System.out.println(string+” “+string2+” “+string3); } a circular bracket is missing in your code and also remove the semicolon after that. 6 [ad_2] solved Java, method not applicable for arguments

[Solved] why web.config has predefined tags? [closed]

[ad_1] Web.Config itself is written in XML format right? Yes, but in addition to that it has an XML schema associated and the Configuration class which is responsible to read values from this XML file verifies that the schema is being respected. You should make the distinction between well formed XML and valid XML according … Read more

[Solved] Java never declares access level of variables in methods whether static or not [closed]

[ad_1] Because it doesn’t make sense. Variables declared in a method are local to the method; i.e. they can’t be accessed outside the method. Why and how could these variables be modified outside the method? Code outside the method doesn’t even know of them, so you don’t need to protect them from outside code. [ad_2] … Read more

[Solved] How to get the name of List [closed]

[ad_1] If what you mean is the name of the variable that was used when the list was passed to the method like this: static List<string> GatherDataPerProduct(List<Pandora.Data.DomainObject> lstdata) { if(lstData.value == “subjects”) { //do whatever } List<DomainObject> subjects; GatherDataPerProduct(subjects); then what you’re trying to do is not possible. The reason is that upon compilation, the … Read more

[Solved] CSS won’t work in firefox [closed]

[ad_1] Change .container td { color: #333; font-size: 14px; font-weight: normal; display: table-column; min-height: 19px; border-right: 1px solid #E3E3E3; border-bottom: 1px solid #E3E3E3; } to .container td { color: #333; font-size: 14px; font-weight: normal; min-height: 19px; border-right: 1px solid #E3E3E3; border-bottom: 1px solid #E3E3E3; } 2 [ad_2] solved CSS won’t work in firefox [closed]

[Solved] What is a Do and While statement [closed]

[ad_1] The do {} while; loop executes exactly once before the condition is checked: do { “//code stuff here” } while (condition); is equivalent to “//code stuff here” while (condition) { “//code stuff here” } 9 [ad_2] solved What is a Do and While statement [closed]