Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~297 People Reached
Favorite Forums
Favorite Tags
java x 3
Member Avatar for ahmed hashmi

//i have written this code in package p1:: //address of this file is:::C:\p1 package p1; public class balance{ String name; double bal; public balance(String n,double b) { name=n; bal=b; } } //and now i want to import this file in this code //address of this file is:::C:\Program Files\Java\jdk1.6.0_11\bin import p1.*; …

Member Avatar for musthafa.aj
0
82
Member Avatar for anjalhere

hello everyone, Output is coming not equal for same input.what is the error in this program? import java.util.*; class newobj_equal { public static void main(String[] args) { int eid; String ename; double salary; Scanner sin=new Scanner(System.in); System.out.println("Enter eid");z eid=sin.nextInt(); System.out.println("Enter ename"); ename=sin.next(); System.out.println("Enter salary"); salary=sin.nextDouble(); emp e1=new emp(); e1.accept(eid,ename,salary); e1.display(); …

Member Avatar for musthafa.aj
0
136
Member Avatar for jogendar

[code] String filename = jfr.getTitle(); File fname = new File(filename); System.out.println(filename); if(filename.equals("untitled")) { System.out.println(filename); return; } else { System.out.println(filename+"+"); } [/code] when i run the above code though the filename is "untitled",the statements under both if and else are been executed... is there any wrong in it??

Member Avatar for ahmed hashmi
0
79