Posts

Showing posts from 2017
code for news application android
Image
                                          SWADESHI APNAYEN-DESH BACHAYEN WELCOME INTERNATIONAL MARKETING CORPORATON (IMC):- Organic Proof  Company. Proved as GMP( Good Manufacturing Practices) by Uttrakhand Ayurvedic corporation . Proved as WHO GMP( Good Manufacturing Practices ) & GPP( Good Packaging Practices ). Proved as ISO 22000:2005,ISO 9001:2008 and HACCP. IMC has presented Organic,Ayurvedic,Paitentid,Herbal,Health,butey,Personal Care and many chore products first time in India.Products of IMC are of best quality ,are at the level of International are guaranteed and are ecofriendly.We don't use fats of animal in it .There are Bio-Pharmesist,Ayurvedic Doctors,Professors,Scientist and famous advisor in IMC. Your Most Welcome in IMC Private limited The aim of our company is to make people free from deseases and make man rich. You can also live for 100 years and can be rich and can fulfil your desires or dreams. Do You Know ,According to th

program to print calendar in java

import java.util.*; class Calendar { public static void main(String ar[]) { int a=0,E=0,A=0,D=0; int end=0; int t=1; char y[]=new char[4]; int year[]=new int[4]; int c[]=new int[2];  System.out.println("enter any date "); Scanner in=new Scanner(System.in); int d=in.nextInt();//day int m=in.nextInt();//month in.nextLine(); String yy=in.nextLine();//year System.out.println(d+"/"+m+"/"+yy); int B=Integer.parseInt(yy); c[0]=B/100;  c[1]=B%100; int dd=d%7; if ((B%4==0)&&(m==2)) {  end=29; } else if(m==2)  end=28; switch(m) {  case 1:a=0;         end=31;         break;  case 2:a=3;         break;  case 3:a=3;         end=31;         break;  case 4:a=6;         end=30;         break;  case 5:a=1;         end=31;         break;  case 6:a=4;         end=30;         break;  case 7:a=6;         end=31;         break;  case 8:         a=2;         end=30;         break;  case 9:a=5;         end=31;      

Program of printing calender by giving date in java

public static void main(String[] args) {int a=0; int E=0; int A=0; int D=0; int end=0; int t=1; char y[]=new char[4]; int year[]=new int[4]; int c[]=new int[2]; System.out.println("enter any date "); Scanner in=new Scanner(System.in); int d=in.nextInt();//day int m=in.nextInt();//month in.nextLine(); String yy=in.nextLine();//year for(int i=0;i<4;i++) { y[i]=yy.charAt(i); year[i]=((int)y[i])-48; } c[0]=(((year[0])*10)+year[1]); c[1]=(((year[2])*10)+year[3]); int B=(c[0]*100)+c[1]; int dd=d%7; if ((B%4==0)&&(m==2)) { end=29; } else if(m==2) { end=28; } switch(m) { case 1: a=0; end=31; break; case 2: a=3; break; case 3: a=3; end=31; break; case 4: a=6; end=30; break; case 5: a=1; end=31; break; case 6: a=4; end=30; break; case 7: a=6; end=31; break; case 8: a=2; end=30; break; case 9: a=5; end=31; break; case 10: a=0; end=3