Skip to content

Instantly share code, notes, and snippets.

Avatar
😊
Happy Coding

Ayat Khraisat AyatKhraisat

😊
Happy Coding
View GitHub Profile
View CustomGetterTemplete
#if($field.modifierStatic)
static ##
#end
$field.type ##
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project))))
#if ($field.boolean && $field.primitive)
is##
#else
get##
#end
View CustomArrayListGetter.java
public ArrayList<Grade> getGrades() {
return new ArrayList<Grade>(grades);
}
View CustomGitter.java
public String getName() {
return (name!=null) ? name :"" ;
}
public ArrayList<Grade> getGrades() {
return (grades!=null) ? grades : new ArrayList<Grade>();
}
View Student.java
import java.util.ArrayList;
public class Student {
private int id;
private String name;
private ArrayList<Grade> grades;
View MainActivity.java
package com.udacity.stockhawk.ui;
import android.content.Context;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
View MainActivity.java
package com.udacity.stockhawk.ui;
import android.content.Context;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
View MainActivity_StockHawk.java
package com.udacity.stockhawk.ui;
import android.content.Context;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
View pri.cpp
#include<stdio.h>
#include<stdlib.h>
typedef struct process
{
int id,at,bt,st,ft,pr;
float wt,tat;
}process;
process p[10],p1[10],temp;
View rr.cpp
#include<iostream>
#include<cstdlib>
#include<queue>
#include<cstdio>
using namespace std;
typedef struct process
{
int id,at,bt,st,ft,pr;
float wt,tat;
View sjfp.cpp
#include<stdio.h>
typedef struct nonpresjf
{
int at,bt,ft,tat,wt;
}nonpresjf;
nonpresjf p[20],p1[20];
int main()
{
int i,limit,nextval,m,min,n;