Skip to content

Instantly share code, notes, and snippets.

View sidcool1234's full-sized avatar
💭
Coding Furiously

Siddharth Kulkarni sidcool1234

💭
Coding Furiously
View GitHub Profile
@sidcool1234
sidcool1234 / Indentation.java
Last active May 25, 2021 08:50
Indentation
public String doStuff(StringBuffer data) {
if(data != null) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
data.append(String.valueOf(i+j));
}
data.append("\n");
}
} else {
class Employee {
private int id;
private int yearOfBirth;
private int monthOfBirth;
private int dateOfBirth;
private String addressFlat;
private String addressStreet;
private String city;
private String state;
private String pincode;
enum COLOR {
WHITE, BLACK
}
enum PIECE {
NONE, BISHOP, KING // etc.
}
class Cell {
private COLOR color; // Enum, white or black
public class Customer {
public String type;
}
public class ProcessOrder
{
public int getOrderGrandTotal(Customer customer, int subTotal)
{
if (customer.type.equals("EMPLOYEE"))
{
package com.springbootwebcsocket.demo;
import java.util.concurrent.Semaphore;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReentrantLock;
//@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) throws InterruptedException {
import java.io.*;
import java.util.*;
public class BRC {
public static void main(String[] args) throws FileNotFoundException {
long millis = System.currentTimeMillis();
System.out.println(calculateMinMeanMaxPerStation(readCSV()));
System.out.println("Time taken = " + (System.currentTimeMillis() - millis));
}