Create a program that can identify of a integer is even or odd and if it is positive or negative.
public class App {
public static void main(String[] args) throws Exception {
// scanner
Scanner scanner = new Scanner(System.in);| using Microsoft.VisualStudio.TestTools.UnitTesting; | |
| namespace ConsoleNancySelfHostedNetTest | |
| { | |
| [TestClass] | |
| public class TestIbsQueryBuilder | |
| { | |
| public class MyModel : IbsQueryBuilder | |
| { |
| using System; | |
| using System.Text.RegularExpressions; | |
| namespace ConsoleNancySelfHostedNetTest | |
| { | |
| public abstract class IbsQueryBuilder | |
| { | |
| private string _queryCriteria = ""; | |
| public virtual IbsQueryBuilder Where(string col, string arg1, string arg2 = null) |
| Get["/"] = _ => { | |
| dynamic model = new ExpandoObject(); | |
| model.Name = "Nancy"; | |
| return Response.AsJson((object)model); | |
| }; |
| <?php | |
| /** | |
| * Convert under_score type array's keys to camelCase type array's keys | |
| * @param array $array array to convert | |
| * @param array $arrayHolder parent array holder for recursive array | |
| * @return array camelCase array | |
| */ | |
| public function camelCaseKeys($array, $arrayHolder = array()) { | |
| $camelCaseArray = !empty($arrayHolder) ? $arrayHolder : array(); |
| div .component_ProductDisplay_Product { | |
| padding: 0; | |
| margin: 0; | |
| } | |
| div.component_ProductDisplay_CrossSellHorizontal { | |
| padding: 0; | |
| } | |
| div .product { | |
| margin: 0 20px; | |
| } |
| [template version=2] | |
| [comment] | |
| # If the product is inactive, this component will respond in 2 ways | |
| # 1. if the user is a customer, it will display the 'Product is disabled message' only. | |
| # 2. if the user is an admin, it will display a notification saying the product is inactive | |
| # but will still render the rest of the component | |
| [/comment] | |
| <article class="product"> | |
| [if v inactive] | |
| [if session admin] |
| [program:laravel-worker] | |
| process_name=%(program_name)s_%(process_num)02d | |
| command=php home/vagrant/Code/lead_reactor/artisan queue:work database --sleep=3 --tries=3 --daemon | |
| autostart=true | |
| autorestart=true | |
| user=vagrant | |
| numprocs=8 | |
| redirect_stderr=true | |
| stdout_logfile=home/vagrant/Code/lead_reactor/storage/logs/laravel-worker.log |