Skip to content

Instantly share code, notes, and snippets.

public class Lesson1neeraj{
//instance method
private void sayHello(String name){
System.out.println("Hello "+name);
}
public static void main(String[] args){
//Lesson1neeraj.java
public class Lesson1neeraj{
//instance method
private void sayHello(String name){
System.out.println("Hello "+name);
}
public static void main(String[] args){
{1,2,3,4,5,6}
String[] args = null
public class Lesson2{
private static void push(int[] stack,int elem,int top){
stack[top] = elem++;
//top = 0
top++;
//top = 1 top is just a local variable -
//changes made to it are not passed to main function
}
mkdir trydiff
git init
vim -p readme
git status
//predict the status
git diff
//predict the diff
//if diff is ok :
git add
git diff head