123 Eng

### Engineering the engineers™

Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

Computer Science / IT
Electronics
Electrical
Mechanical
Chemical
Civil

CAT / MBA

GMAT / Foreign MBA
Latest Jobs

Displaying  Source Code(s)

 This program can shows the relation between A boy and GIRL -------------------------------------------------------------------------------- Description : This program is designed on the basis of simple FLAMES & CALCULKATES THE NUMBER ...depending on this it will generates the result Code : // JUST FOR FUN.............. import java.io.*; class Sateesh1 { public static void main(String args[]) throws IOException { int m; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter ur name: "); String first=br.readLine(); System.out.println("Enter ur partner's name: "); String second=br.readLine(); StringBuffer s1=new StringBuffer(first); StringBuffer s2=new StringBuffer(second); int a=s1.length(); int b=s2.length(); //comparing two names label: for(int i=0;is3.length()-1) { char e=s3.charAt(p); if(l==d) { s3.deleteCharAt(p); //String s4=new String(); s4=s3.substring(p,s3.length()); ////System.out.println(s4); s3.delete(p,s3.length()); ////System.out.println(s3); s3.insert(0,s4); ////System.out.println(s3); break; } else{ p++; if(p==s3.length()) {p=0; } } } else { char e=s3.charAt(n); if(l==d) { s3.deleteCharAt(n); s4=s3.substring(n,s3.length()); ////System.out.println(s4); s3.delete(n,s3.length()); ////System.out.println(s3); s3.insert(0,s4); ////System.out.println(s3); break; } //break; } } } ////System.out.println(s3); char result=s3.charAt(0); switch(result){ case 'f': System.out.println(second+" is ur Friend"); break; case 'l': System.out.println(second+" is ur Love"); break; case 'a': System.out.println(second+" is ur Affection"); break; case 'm': System.out.println("u r going to marry "+ second); break; case 'e': System.out.println(second + " is ur Enemy"); break; case 's': System.out.println(second +" is ur Sister"); break; } } }

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG