Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
GOOGLE AI PRO - 18 Month - Rs.500.00
Sanathbh
Updated:
Today at 8:25 PM
📸 SIGMA 85mm F1.4 DG HSM | Art — Nikon Mount
romeshnonis
Updated:
Yesterday at 3:56 PM
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Monday at 9:03 PM
Plan your Crypto & Forex entries before you take the trade
romeshnonis
Updated:
Monday at 3:20 AM
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Sep 8, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Java Help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="kasuwa1235" data-source="post: 18856188" data-attributes="member: 65783"><p>Me Simple coding eke error ekak enawane</p><p></p><p>eka hadanne kohomada</p><p></p><p></p><p></p><p>class cal{</p><p> String name;</p><p> String country;</p><p> </p><p> public cal(String a,String b){</p><p> name = a;</p><p> country = b;</p><p> </p><p> </p><p> }</p><p>}</p><p>class display{</p><p></p><p>public static void main(String[] args){</p><p>cal c1 = new cal("kasun","bemmulla");</p><p></p><p>System.out.println(c1.cal);</p><p></p><p></p><p>}</p><p> </p><p>}</p><p></p><p></p><p></p><p></p><p></p><p>D:\java>javac display.java</p><p>display.java:17: error: cannot find symbol</p><p>System.out.println(c1.cal);</p><p> ^</p><p> symbol: variable cal</p><p> location: variable c1 of type cal</p><p>1 error</p></blockquote><p></p>
[QUOTE="kasuwa1235, post: 18856188, member: 65783"] Me Simple coding eke error ekak enawane eka hadanne kohomada class cal{ String name; String country; public cal(String a,String b){ name = a; country = b; } } class display{ public static void main(String[] args){ cal c1 = new cal("kasun","bemmulla"); System.out.println(c1.cal); } } D:\java>javac display.java display.java:17: error: cannot find symbol System.out.println(c1.cal); ^ symbol: variable cal location: variable c1 of type cal 1 error [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom