FAQ Database Discussion Community


Identifier expected?

java,symbol,identifier
Given the following code: public class Test1 { int i; i = 4; } public class Test2 { public static void main(String[] args) { Test1 t1 = new Test1(); System.out.println(t1.i); } } why do I get the following when I try to compile Test2? ./Test1.java:3: error: <identifier> expected i =...

Itext std deviation symbol σ not printing

itext,symbol
Using itext to generate PDFs and I have a symbol σ which does not print in the pdf. Is this because of font selection (using HELVETICA_BOLD)? Can anyone help

Extra “?>” symbol in PHP file (top left corner) [closed]

php,jquery,html,post,symbol
I have an issue with a PHP page which displays a "?>" symbol in the top left corner. It looks like this: <?php include_once("DBconnect.php"); $getuser = $_POST["RegUsername"]; $getpass = $_POST["Pass"]; $getrepass = $_POST["RePass"]; $getemail = $_POST["Email"]; if($getuser){ if($getpass){ if($getrepass){ if($getpass == $getrepass){ if($getemail){ $code = rand(); if(mysqli_query($link, "INSERT INTO users...

Some operators are not allowed by Lua

c++,c++11,lua,symbol
I'm having a really odd issue with a Lua implementation into my C++ project. For some reason, it doesn't allow scripts containing operators like #, :, % (and some more, less important) to be executed. In the results... I need to use for i = 1, table.getn(tbl) do instead of...

PaperJS remove symbol from array

arrays,symbol,paperjs
I wanted to create a function which, by each call, creates another rain drop that falls down the screen and gets deleted when at the bottom. So far I managed to do this with PaperJS, but as soon as I want to delete one rain drop when it hit the...

Percentage symbol in TextView with one decimal point

android,textview,symbol
How can I set the percentage symbol to a TextView with one decimal point in Android? I have tried using the unicode symbol but its not working. textES.setText(String.format("%.1f \u0025",percentage)); ...

Ruby: how to use gsub method on symbol inside string interpolation #{}

ruby,symbol,gsub,string-interpolation
I'm I'm trying to iterate through a hash, printing out keys and values in a formatted list. My understanding was that string interpolation #{} would implicitly convert the symbols to strings. However, when I run the code below (slightly abbreviated): holiday_hash = { :winter => {:new_years => ["Party Hats", "Champagne"]}...

Error: cannot find symbol - Java compile error

java,int,symbol
I've been looking at this for a while now, and I'm sure the fix is right in front of me but I'm just blind to it. Someone care to point out why my int i is giving me an error? CacheDownloader class: public static void main(String[] args) { String strFilePath...

How can I get an svg symbol to reference another symbol in an external file?

svg,symbol,xlink
I'm trying to reference a symbol inside a symbol in an external file, but can't get it to work in Chrome or Firefox. I can reference a symbol in another symbol if they are defined at the top of the html file no problem with this: <!-- in the html...

how do you reference a symbol in a different class in as3?

function,actionscript-3,class,import,symbol
I have created two separate classes and I want to use a symbol I created in the main class in a function I created in the second class. I have tried importing both classes into each other, however when I do this I get Error #1023. I am fairly new...

How to create a type in Clojure from an input of Strings for symbol names?

clojure,symbol,deftype
I'm trying to create a list of types - so that I can map over a list of Strings and create all the types I need. This is where I'm aiming for: (defprotocol P (methodname [arg1])) (deftype T [f] P (methodname [arg1] (println "methodname called"))) For just a single instance...

CPP error LNK2019: unresolved external symbol cpp [duplicate]

c++,external,symbol,lnk2019
This question already has an answer here: What is an undefined reference/unresolved external symbol error and how do I fix it? 18 answers Error 1 error LNK2019: unresolved external symbol "public: void __thiscall Sounds::soundBox(void)" ([email protected]@@QAEXXZ) referenced in function _main For some reason i get this error, and i rly...

Could someone please explain why mixing my C file and Objective-C++ file is causing this linker error?

c,xcode,linker,symbol,objective-c++
So I have several C files I imported into my XCode project. The primary C file contains the following function: void myFunction (char* arg1, int arg2, int arg3, int arg4) { // My code here } I then created the following header file for this file, including it in both...

Matlab - Using symbols in gscatter

colors,symbols,symbol,marker,scatter
Ok, so I'm trying to use gscatter to plot 8 different points in a figure. These 8 points are all different and thus I want to give them different symbols. I know that gscatter will automatically assign them different colors, but I also want to be able to use the...

what does “::” mean in Scala ? [duplicate]

scala,symbol
This question already has an answer here: Scala punctuation (AKA symbols and operators) 8 answers What does :: mean here ? listeners ::= listener list = num :: list Specially I don't understand the "::" operator....

how to take a symbol as a string [duplicate]

python,string,symbol
This question already has an answer here: How can I selectively escape percent (%) in Python strings? 4 answers This question is quite simple but I cannot find the good way to do that.... The thing is that I am trying to print on screen the progress of an...

Unidentified symbol

java,io,symbol
Given the following: import java.io.*; public class WriteRead { public void writeToFile(String filename) throws IOException { FileWriter fw = new FileWriter(filename); fw.write("testing"); fw.close(); } public String readFromFile(String filename) throws IOException { String str = ""; int characterInt = 0; FileReader fr = new FileReader(filename); while (characterInt != -1) { characterInt...

why 2 same strings have a same object_id in Ruby?

ruby,string,hash,symbol
As you may know that in Ruby two same strings do not have a same object_id, while two same symbols do. For instance: irb(main):001:0> :george.object_id == :george.object_id => true irb(main):002:0> "george".object_id == "george".object_id => false However, in my code below, it shows that two strings which have a same value...