Advanced Search
Search Results
211 total results found
First Java program
Assuming that you already can run JAVA in your machine.Let's learn the java basic to begin your first java journey First of all Java will run the code in main function and main function will be in the class of your choices1. Create a new folder where you want...
Java Variables
Variables are the values that stores data in it and you can use it easily variables can be in lots of types the basics one are int -> this data type is for storing the integer valueslong -> Can store integer more than intfloat -> Can store decimal point num...
Java Inputs
You can already show the data to the users. Now let's receive it from user. In java reading the input is a bit complicatedWe have a Scanner class in java the Scanner class have methods to read different type of input. There are some of it that we use frequ...
Docker Script
docker build # Build images docker build -t your-username/image-name:tag <loacation> docker push docker hub docker push your-username/image-name:tag To build a Docker image for the amd64 architecture from a macOS system (likely arm64 architecture on Apple...
Docker Compose
database compose version: "3.5" services: postgres: image: postgres:14-alpine command: postgres -c 'max_connections=' container_name: hostname: # networks: # defuat: # ipv4_address: 10.34.0.30 ports: - "...
Dockerfile
React # Use Node.js 20 on the ARM64 platform (suitable for ARM-based systems like Apple Silicon) FROM --platform=linux/arm64 node:20-alpine AS builder # Enable Corepack and prepare pnpm for managing dependencies RUN corepack enable && corepack prepare pn...