Skip to content
🤔prompts chat🧠
🔍
question:Create a list of 5 strings in Java.

answer:List<String> list = Arrays.asList("hello", "world", "news", "sun", "moon");

question:Write a command line program in C++ which takes a string as input and prints all its characters in reverse order. input_string = "Hello world!

answer:#include <iostream> #include <string> using namespace std; int main() { string input; cin >> input; int size = input.length(); for (int i=size-1; i>=0; i--) { cout << input[i]; } return 0; }

question:Construct an SQL statement to select the column names from a table. table_name="customer

answer:SELECT column_name FROM customers;

question:Write a bash script that prints out the current working directory.

answer:#!/bin/bash DIR=( pwd ) echo "Current working directory: DIR"

Released under the MIT License.

has loaded